Blog

Swift and SwiftUI Articles

Enums in Swift

An enumeration type appears in every programming language, Enum stores the finite set of data like string, integer, enum is a list of comprehensive raw data in swift, enum is useful for handling flag, states, Read more…

Result In Swift

Apple introduced Result standard library into Swift Codebase in swift 5, Result has enum type, Result represents the outcome of any Operation or Functionality, like calling asynchronous API call, API response may be Success or Read more…

How to use @state in SwiftUI

The SwiftUI framework is a reactive framework. No need to use any reactive framework like RxSwift to achieve reactive programming. The @State is a ‘propertyWrapper‘ struct. It wraps a value of property or object with Read more…

SwiftUI vs UIKit

At the 2019 WWDC Apple introduced a new UI framework called SwiftUI. From the initial phase of iOS development, we are looking at Xibs and storyboards to build a user interface in ios, macOS and Read more…

Lifecycle of UIViewController in Swift / Objective c.

UIViewController is the collection of multiple Views. The view controller manages subview layouts, sizing, interface orientations, and functional implementation. It handles instantiated classes from itself like TableviewController, CollectionViewcontroller, TableViewControllert, UISplitViewControlleretc. It also managing content and Read more…