Build: Identifiable List Screen
This screen shows a list of simple items that conform to the Identifiable protocol. Each item has a unique id and a name. The list displays the names. This helps SwiftUI know which item is which when updating the list.
Target UI
--------------------- | Identifiable List | --------------------- | * Item 1 | | * Item 2 | | * Item 3 | ---------------------
Create a struct named Item that conforms to Identifiable.
Give Item a unique id property of type UUID.
Give Item a name property of type String.
Create a SwiftUI List that shows the names of several Item instances.
Use the id property automatically for the List to identify each row.