Blogs

The Tect Blogs on Various Topics
April 23, 2022
Map Operator : Kotlin

The collection is something which is used by almost everyone. It makes our life easy. List, Set and Map are the best examples of them. …

April 11, 2022
Math.round vs Math.floor vs Math.ceil : Kotlin

Rounding up to the nearest Integer value functionality is something required a lot of times. Kotlin has a few inbuilt functions which can do the rounding up for us but they are a bit confusing. …

April 10, 2022
Double vs Float : Swift

Swift has two data types (Double and Float) to hold the decimal values. Both of them hold the same decimal type values but have some differences. …

April 10, 2022
For-in vs For-each in Swift

For-in and for-each are different variants of for loops in swift which are used to iterate over a range, set or dictionary. …

April 9, 2022
Custom Object in UserDefaults : Swift

In continuation to my previous blog UserDefaults in Swift, where we understand the basic functionality of UserDefaults, we’ll try to understand today how can we store custom objects in UserDefaults. …

March 24, 2022
UserDefaults in Swift

A small set of data is required to be stored and accessed very frequently and need to be persisted across sessions or app launches. …

March 20, 2022
UISwitch Value Change Listener : Swift

Adding an value change event to a UISwitch is something that is required most of the time. For views like UISwitch, we can connect an IBAction with the event type as value changed and get a callback for the value changed. …

March 9, 2022
UIDatePicker Date Change Listener : Swift

Adding an editing event to a UIDatePicker is something that is required most of the time. For views like UIDatePicker, we can connect an IBAction with the event type as value changed and get a callback for the value changed. …

March 8, 2022
UITextField Text Listener : Swift

Adding an editing event to a UITextField is something that is required most of the time. For views like UITextField, we can connect an IBAction with the event type as editing did end or value changed and get a callback for editing finished or value changed. …

February 27, 2022
Switch Statement in Swift

The switch statement in Swift is used to execute a particular block of code based on multiple conditions. A switch statement is useful for more than one condition. …

January 15, 2022
Kotlin Range Operator

Range Operator in Kotlin is a basic operator that is used to operate over a range. A range can be defined with a start value and an end value with and without inclusion. …

December 20, 2021
Iterators in Kotlin

Collections (Sets, Maps and Lists) are something we use daily. Traversing (Iteration) is the most common operation we perform over any collection. …

October 5, 2021
Swift Range Operators

Range Operator in Swift is a basic operator that is used to operate over a range. There are multiple types of range operators where we can include or exclude the upper range. …

September 10, 2021
Swift ‘For’ loop

For loops are used by every developer regularly. There is for-in as well as a for-each loop in Swift which has a bit different syntaxes. …

September 5, 2021
lazy Property in Swift

Object creation is a heavy process. When we create a class object, all the public and private properties of that class are initialised inside the constructor. …

August 29, 2021
lateinit vs lazy Property in Kotlin

Since object creation is a heavy process as it initialises all the public and private properties defined in that class when the constructor is called, Kotlin has few ways to initialise properties later when required. …

August 4, 2021
lazy Property in Kotlin

Object creation is a heavy process. When we create a class object, all the public and private properties of that class are initialised inside the constructor. …

June 26, 2021
Native Android Receive Text from Other Apps in Unity

In continuation to my previous blog Native Android text sharing in Unity, where we learnt about sharing text from a Unity app targeting the Android platform, let’s try to learn about how can we receive a text from other apps. …

May 29, 2021
Custom Android Manifest File in Unity

The Android manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play. …

May 29, 2021
Lerp Function : Unity

In game development, one of the most common problems is the smooth transition of objects from one position to another. A linear interpolation or Lerp function is a popular technique used to achieve this in Unity. …

1 2 3 4 5 6