Post

Replies

Boosts

Views

Activity

Reply to Conditionally Migrate WatchOS 10 users ONLY to WidgetKit
@edford  Just an update to provide some new context with the recent WatchOS 10.3 release etc... I've done several updates to my app in the past few weeks and I still have issues from users running WatchOS 10.2/10.3 and WatchOS 9.6 For the WatchOS 9.6.3 users, I'm still seeing the exact same crashes as the one I submitted from September 23. For the WatchOS 10 users, I only see crash reports for users on 10.0, however I still get problems reported from users mostly around complications disappearing from their watch face. This is even from users running WatchOS 10.2, too early to say for 10.3 Should I reopen a bug report / feedback on this or is there something I'm still missing to avoid all this?
Topic: App & System Services SubTopic: General Tags:
Jan ’24
Reply to SwiftChart with secondary Y Axis
You can do something like this: AxisMarks(position: .leading, values: Array(stride(from: yMin(), through: yMax(), by: 5))){ axis in AxisTick(stroke: .init(lineWidth: 2.5)).foregroundStyle(.pink) AxisGridLine() AxisValueLabel("\(Int((Double(axis.index)*5) + yMin()))", centered: false) } AxisMarks(position: .trailing, values: Array(stride(from: yMin(), through: yMin()+30, by: 5))){ axis in AxisTick(stroke: .init(lineWidth: 2.5)).foregroundStyle(.indigo) AxisGridLine() AxisValueLabel("\(Int(5*Double(axis.index))+10)", centered: false) } } But then you'll need to normalise the values for the second axis hence all the hack code in my AxisValueLabel content. I don't believe there's a more straight forward solution to your problem currently.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24
Reply to Widgets without timeline on WatchOS
I think you'll now need to implement the TimelineProvider calls but you can just return a SimpleTimelineProvider entry and ignore the content when creating the SwiftUI view for your app icon. Have a look at the Apple sample code from the WWDC22 talk Complications and widgets: Reloaded
Topic: App & System Services SubTopic: General Tags:
Apr ’24
Reply to Multiple Swift Charts in List diplay inconsistently
I might possibly have had the same issue as you. I did the following (iOS 17 code) and it solved the issue. Try putting the "models" inside an @Observable class <YourModelName> and then in the view doing @Bindable var modelBinding = <YourModelName> ForEach($modelBinding.models) { $value in ChartView(value: $value) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24
Reply to openSettingsURLString For Privacy & Security -> Health
I've resolved this. I realised I could use the console and find the URL call the app makes. After a bit of reverse engineering I came up with this which works on iOS 16.7.2, 17.4.1 & 17.5 UIApplication.shared.open(URL(string: "App-Prefs:Privacy&path=HEALTH")!, completionHandler: { (success) in Logger.userevent.info("Settings opened: \(success)") })
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’24
Reply to How can I re-create a CLKRelativeDateTextProvider in a WidgetKit complication?
I wish this was possible but fairly sure it's not. Also their relative dates that are available don't update in the WidgetLabel areas... Frustrating, yet another regression from WidgetKit
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Conditionally Migrate WatchOS 10 users ONLY to WidgetKit
Still happening for devices running WatchOS 9.6.2 & 9.6.3 Any update on this Apple?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Scrollable Plot Area
See new APIs in iOS 17 for a better solution to all this.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Console app not showing info and debug logs
I too am seeing this issue where in the Console app (fine in Xcode) it won't show Logger debug message. Info ones are fine, OSLog works fine.... Running Xcode 15, MacOS 13.6, iOS 17.0.3 and WatchOS 10.0.2, its Apple Watch I'm trying to debug.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Modular Ultra ignores complications font
Could this be related to this post? https://developer.apple.com/forums/thread/741113
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Widgets: Detect StandBy night mode iOS 17
Is there a solution here to detect if Widget is displayed on Mac via iPhone? I want to have a button in my interactive widget to update Health data but this is no good on the Mac because generally the user's device will be locked and therefore the HealthStore will be unavailable.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to `.chartAngleSelection` doesn't register taps when tapping a `SectorMark`, have to hold down a little bit
This seems to be the case with all charts for .chartXSelection and .chartYSelection. Not sure what can be done.... the system .onTapGesture doesn't have this issue so depending on if you need to track the tap location, this might be a solution
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Conditionally Migrate WatchOS 10 users ONLY to WidgetKit
@edford  Just an update to provide some new context with the recent WatchOS 10.3 release etc... I've done several updates to my app in the past few weeks and I still have issues from users running WatchOS 10.2/10.3 and WatchOS 9.6 For the WatchOS 9.6.3 users, I'm still seeing the exact same crashes as the one I submitted from September 23. For the WatchOS 10 users, I only see crash reports for users on 10.0, however I still get problems reported from users mostly around complications disappearing from their watch face. This is even from users running WatchOS 10.2, too early to say for 10.3 Should I reopen a bug report / feedback on this or is there something I'm still missing to avoid all this?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Apple Watch Modular Ultra face clips text and affects font positioning
In the event that anyone at Apple ever reads these post and the filed Feedbacks...... This is still an issue on WatchOS 10.3
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to SwiftChart with secondary Y Axis
You can do something like this: AxisMarks(position: .leading, values: Array(stride(from: yMin(), through: yMax(), by: 5))){ axis in AxisTick(stroke: .init(lineWidth: 2.5)).foregroundStyle(.pink) AxisGridLine() AxisValueLabel("\(Int((Double(axis.index)*5) + yMin()))", centered: false) } AxisMarks(position: .trailing, values: Array(stride(from: yMin(), through: yMin()+30, by: 5))){ axis in AxisTick(stroke: .init(lineWidth: 2.5)).foregroundStyle(.indigo) AxisGridLine() AxisValueLabel("\(Int(5*Double(axis.index))+10)", centered: false) } } But then you'll need to normalise the values for the second axis hence all the hack code in my AxisValueLabel content. I don't believe there's a more straight forward solution to your problem currently.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Widgets without timeline on WatchOS
I think you'll now need to implement the TimelineProvider calls but you can just return a SimpleTimelineProvider entry and ignore the content when creating the SwiftUI view for your app icon. Have a look at the Apple sample code from the WWDC22 talk Complications and widgets: Reloaded
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Custom Complication Previews when applying .watchface don't appear
I've had this problem since WatchOS 9 with the move from ClockKit to WidgetKit. I'm not sure if Apple are still interested in .WatchFace files or supporting them properly through WidgetKit....
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Multiple Swift Charts in List diplay inconsistently
I might possibly have had the same issue as you. I did the following (iOS 17 code) and it solved the issue. Try putting the "models" inside an @Observable class <YourModelName> and then in the view doing @Bindable var modelBinding = <YourModelName> ForEach($modelBinding.models) { $value in ChartView(value: $value) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to openSettingsURLString For Privacy & Security -> Health
I've resolved this. I realised I could use the console and find the URL call the app makes. After a bit of reverse engineering I came up with this which works on iOS 16.7.2, 17.4.1 & 17.5 UIApplication.shared.open(URL(string: "App-Prefs:Privacy&path=HEALTH")!, completionHandler: { (success) in Logger.userevent.info("Settings opened: \(success)") })
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to SubscriptionStoreView showing 'The subscription is unavailable in the current storefront.' in production (StoreKit2)
I've fixed this for myself, I had the GroupID set wrong, oops! Was set to one for the StoreKit test file in Xcode and not the one in AppStoreConnect
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24