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

  • 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 the list should look like.…

  • 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: In this example, names is…