Build: Collections Demo
This screen shows examples of three common collections in Swift: an Array, a Dictionary, and a Set. It displays their contents in separate sections so you can see how each collection works.
Target UI
------------------------- | Collections Demo | |-----------------------| | Array: | | - Apple | | - Banana | | - Cherry | |-----------------------| | Dictionary: | | - A: Apple | | - B: Banana | | - C: Cherry | |-----------------------| | Set: | | - Apple | | - Banana | | - Cherry | -------------------------
Display an Array of strings labeled 'Array' with three fruit names.
Display a Dictionary with single-letter keys and fruit names as values labeled 'Dictionary'.
Display a Set of strings labeled 'Set' with the same fruit names.
Use SwiftUI VStack and Text views to layout the content clearly.
Each collection section should have a title and list its items below.