Post

Replies

Boosts

Views

Activity

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
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 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 can i use Swift Charts with ios 15?
Swift Charts require iOS 16.0, iPadOS 16.0, macOS 13.0, Mac Catalyst 16.0, tvOS 16.0 or watchOS 9.0 or greater. SwiftCharts
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to A navigationDestination for <App.Entity> was declared earlier on the stack. Only the destination declared closest to the root view of the stack will be used.
For value-based navigation destinations, don't put the destination modifier right after the NavigationLink. Put it after the List view or whatever your containing view is.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to MapKit Annotations
Create a data model structure which holds the MKAnnotation data. Insure that the structure is Codable. Then create an init which initializes your data from an MKAnnotation. Create an array of your data and save it via Json.
Replies
Boosts
Views
Activity
Aug ’22
Reply to Xcode b4 Simulator "Posterboard has quit unexpectantly"
Yeah, I'm seeing it too.
Replies
Boosts
Views
Activity
Aug ’22
Reply to UpdateApplicationContext Not Receiving updates
On the iPhone, send the applicationContext on the main queue. On the main queue. It worked fine for me in the simulator.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to UpdateApplicationContext Not Receiving updates
I'm having this issue with Xcode Version 14.0 beta 4 (14A5284g), but I do see that it updates on the Watch Simulator after I quit and restart the Apple Watch app. It doesn't receive applicationContext while the iPhone simulator and watch simulator are up and running together.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to NavigationStack - No Back Button
The newly added Watch App had some build settings to set. Now it works fine and uses a NavigationStack!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to NavigationStack - Missing Back Buttons
The newly added Watch App had some build settings to set. Now it works fine and uses a NavigationStack!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to NavigationStack - Missing Back Buttons
Fixed by deleting watch target and adding it back in. Now the watch doesn't receive messages, but this issue is resolved.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Aug ’22
Reply to NavigationStack - Missing Back Buttons
I'm using Version 14.0 beta 4 (14A5284g) of Xcode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’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:
Replies
Boosts
Views
Activity
Aug ’22
Reply to NavigationStack - Missing Back Buttons
To be complete, it's missing the title and I guess the whole navigation bar.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
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.
Replies
Boosts
Views
Activity
Jul ’22
Reply to NavigationStack - Missing Back Buttons
I filled a bug report on this. FB10908690 (NavigationStack - No Back Button)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22