Open in app

Sign In

Write

Sign In

Suneet Agrawal
Suneet Agrawal

691 Followers

Home

About

Apr 13, 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. …

Kotlin

2 min read

Math.round vs Math.floor vs Math.ceil : Kotlin
Math.round vs Math.floor vs Math.ceil : Kotlin
Kotlin

2 min read


Apr 13, 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. This post was originally posted at https://agrawalsuneet.github.io/blogs/double-vs-float-swift/ and reposted on Medium on 13th April 2022. The basic difference is around the size of memory…

Swift

2 min read

Double vs Float : Swift
Double vs Float : Swift
Swift

2 min read


Apr 13, 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. This post was originally posted at https://agrawalsuneet.github.io/blogs/custom-object-in-userdefaults-swift/ and reposted on Medium on 13th April 2022. UserDefaults provides us with direct…

Swift

2 min read

Custom Object in UserDefaults : Swift
Custom Object in UserDefaults : Swift
Swift

2 min read


Apr 13, 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. One way of keeping them is using a local database like core data in an iOS app. But core data is helpful in the case of…

Swift

2 min read

UserDefaults in Swift
UserDefaults in Swift
Swift

2 min read


Apr 13, 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. This post was originally posted at https://agrawalsuneet.github.io/blogs/uiswitch-value-change-listener-swift/ …

Swift

2 min read

UISwitch Value Change Listener : Swift
UISwitch Value Change Listener : Swift
Swift

2 min read


Apr 12, 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. This post was originally posted at https://agrawalsuneet.github.io/blogs/uidatepicker-date-change-listener-swift/ …

Swift

2 min read

UIDatePicker Date Change Listener : Swift
UIDatePicker Date Change Listener : Swift
Swift

2 min read


Apr 12, 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. This post was originally…

Swift

2 min read

UITextField Text Listener : Swift
UITextField Text Listener : Swift
Swift

2 min read


Apr 12, 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. …

Swift

2 min read

Switch Statement in Swift
Switch Statement in Swift
Swift

2 min read


Apr 12, 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. The range operators can be used with for loops, if conditions or even in when operator. …

Kotlin

2 min read

Kotlin Range Operator
Kotlin Range Operator
Kotlin

2 min read


Apr 12, 2022

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. Iterators are used to traverse over a collection object. It provides access to the elements of the collection object sequentially without exposing the underlying structure of the collection. …

Kotlin

2 min read

Iterators in Kotlin
Iterators in Kotlin
Kotlin

2 min read

Suneet Agrawal

Suneet Agrawal

691 Followers

https://agrawalsuneet.github.io/

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech