Post

Replies

Boosts

Views

Activity

Reply to DATA
I don't know what you mean about the 'Numbers' file. To start, you should create a struct to store your plant's data and collectively, form an array of plants. Something like the following struct Plant: Hashable, Identifiable {     let id = UUID() var plantName = ""     var medicinalProperties: [MedProp]? = nil     var harvestInstructions = ""     var waterRequirement = ""     init?(plantName: String = "", medicinalProperties: [MedProp]? = nil, harvestInstructions: String = "", waterRequirement: String = "") { self.plantName = plantName        if let medicinalProperties = medicinalProperties { self.medicinalProperties = medicinalProperties }         self.harvestInstructions = harvestInstructions         self.waterRequirement = waterRequirement     } } struct MedProp: Hashable, Identifiable {     let id = UUID()     ... } There's a lot more to this than just the data models. If you want to learn SwiftUI, I suggest following Apple's excellent SwiftUI Landmarks tutorial. This will help you through the whole process while introducing you to SwiftUI.
Jul ’22
Reply to NavigationStack - No Back Button
I filed a bug report on this. FB10908690 (NavigationStack - No Back Button). I apologize for having another post on this with the same issue. I hope that someone in the know will respond. I know this is not a bug that others have reported. I'm using Version 14.0 beta 4 (14A5284g) of Xcode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Reply to NavigationStack - No Back Button
I created a new project and deleted the WatchApp target. I then added a WatchApp target and copied the files from my existing project over. Now the watch navigates using NavigationStack, but it does not receive messages from the iPhone. There's always something.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22