Learn iOS development the Swift way: concise articles for fast learning!

  • Constants & Variables in Swift

    Constants and variables are used to store and manage data in your program in Swift. Constants are values that cannot be changed, while variables are values that can be changed. Constants are declared using the let keyword, followed by the name of the constant and its type. Here is an…

  • List in SwiftUI

    To create a list in SwiftUI, you can use the List view. Here is an example of how you could create a list of names using the List view: In this example, the List view is initialized with the names array and a closure that specifies what each item in…

  • Array in Swift

    In Swift, an array is a collection of values that are stored in a single ordered list. For example, you could use an array to store a list of names or a list of numbers. Here is an example of how you could create an array of strings in Swift:…