Closures, Extensions and Generics in Swift
Closures Closures are self contained lines of code that can be passed around the application and similar to blocks in Objective-C. A typical closure syntax ...
Simple iOS development tutorials and tips. Let's build something awesome together with Swift and SwiftUI!
Closures Closures are self contained lines of code that can be passed around the application and similar to blocks in Objective-C. A typical closure syntax ...
Swift is known for its strong type system, which helps prevent errors and makes our code more predictable. However, there are times when we need more flexibi...
Dependency injection is a design pattern that lets you to pass the dependencies for the object instances instead of creating the them inside the instances. L...
Memory management in Swift is done by Automatic Reference Counting or ARC. Whenever a variables holds an instance of an object the memory count for that obje...
Here is the list of Lifecycle methods in a ViewController are viewDidLoad - Called after the view controller’s view hierarchy has been loaded into memory. I...
The app life cycle refers to the sequence of steps that app takes when an user launches an app until it terminates. Understanding the life cycle will help th...
Objective-CSwiftSyntaxC style syntax with small-style message passingModern and Concise SyntaxSafetyMore permissive and allows runtime errorsStrong focus o...
Download the playground file from github (Classes and Struct) Class A class is a blue print for a real-word entity such Player, Person etc. and it is used ...
Delegates Notifications One-to-one communication One-to-many or many-to-many communication C...
Swift has a feature that lets users to assign optional value to a variable or a constant. Optional variable or constant can contain a value or a nil value. L...