Post

Replies

Boosts

Views

Activity

Reply to The Watch App and iPhone App health care permissions are not synchronized.
This must be a bug on apple's part. I have my developer devices (iPhone 16.0 (20A362), Watch 9.1 (20S5055e)) totally out of sync and my personal devices (iPhone 16.0 (20A362), Watch 9.0 (20R364)) working perfectly. Both are running the exact same version of my app (thru TestFlight). Dunno if it's the developer iCloud account or the beta software on the watch.
Topic: App & System Services SubTopic: General Tags:
Oct ’22
Reply to How to add swift availability check to Environment values?
I thought I found a workable solution but it's no good. It only works in the fallback case and it breaks the feature for watchOS8: struct IsLuminanceReduced: EnvironmentKey {     static var defaultValue: Bool = false } @available(watchOS, obsoleted: 8.0) extension EnvironmentValues {     var isLuminanceReduced: Bool {         get { self[IsLuminanceReduced.self] }         set { self[IsLuminanceReduced.self] = newValue }     } } If I could figure out how to tell Swift "with watchOS8, * IGNORE this…" Maybe you can pick up this fumble and carry it across the line?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21
Reply to ObservableObject Array data not updating
This line @StateObject var graph = graphData() initializes a new graph instance in either of your views. They don't communicate with each other. Better use @ObservedObject var graph = GraphData.shared in the views and class GraphData: ObservableObject { static let shared = GraphData() ... } in your model class.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’21
Reply to SwiftUI Runtime Error from if condition { Text() } in watchOS
Apparently this has been fixed by iOS 15 Beta 4: on my test device I had the error prior to the Beta 4 update, using a test app compiled with Xcode 13 Beta 3. After the update to iOS 15 Beta 4 the error is gone. (Xcode Beta 4 is still downloading currently.) So I think it’s reasonable to say that the update to iOS 15 Beta 4 did fix the error. Apple Feedback ID FB9063694 If any1 would like to confirm…?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’21