Post

Replies

Boosts

Views

Activity

Reply to How can I apply the modify my Swift Chart based on the ComplicationRenderingMode
Have come up with a solution.... someone will probably tell me it's horrible, buts it's my only idea for now. I used a ZStack so when the complicationRenderingMode == .tinted I overlay another chart with complicationForeground() modifier applied to the whole thing. On that chart I then only include the elements I want to be tinted. The base chart then offers the elements I want in grey. Hope this helps someone, will update if I find a better solution.
Topic: App & System Services SubTopic: General Tags:
Apr ’23
Reply to Getting Large Titles on WatchOS with a Navigation Stack
Unfortunately this doesn't work for me though as it introduces another issue. If I go with the layout you suggested, any NavigationLinks I have within the NavigationStacks do not hide the Tab View indicator "dots" when opening. This is not the behaviour I'm after. So if I have - NavigationStack{ TabView{ View{ NavigationLink - This works in terms of correctly displaying the NavigationLinks with the new view hiding the indicators, but I loose the large titles. If I have - TabView{ NavigationStack{ View{ NavigationLink - The Large titles display correctly but the indicators are still there after selecting the navigation link. Is this all expected behaviour or is there a bug I need to submit? Or is there some other combination of elements to try that gets me all the behaviour I'm after? Thanks
Topic: App & System Services SubTopic: General Tags:
Feb ’23
Reply to Heart Rate Variability
No, there's no way for third party apps to trigger HRV readings from Apple Watch (unlike heart rate which is possible). However, since the new AF History feature launched with WatchOS 9, I've noted that enabling that changes the number of daily HRV reading the watch records from roughly 5 to roughly 50. Users have to enable this feature though and it currently "requires" the user to have a diagnosis of AF. Hopefully the additional HRV readings roll out to all users with WatchOS 10.
Topic: App & System Services SubTopic: General Tags:
Feb ’23
Reply to Hide & Disable TabBar when in NavigationDestination Subview - Apple Watch
In the end I fixed this and got the behaviour I wanted without the need for a custom solution. The solution was to wrap the whole thing in one navigationStack rather than individual ones. I had already tried this but had the bug mentioned with the navigationTitle not displaying properly. This was fixed by setting the NavigationTitle on the TabView to the same title as the title on the first Tab item view. This is likely a bug which I'll report. Thanks
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’23
Reply to Apple Watch (waiting for first unlock) in Xcode
It feels to me like every year advances are promised in improving watch app build, installing & debugging with Xcode. Sadly these fixes and changes seem to either not do that or introduce other errors. Having an Apple Watch Series 6 & Newer or SE 2 is a good start because they have the dual band wifi chip needed to work with networks at 5GHz, debugging over Bluetooth is pointless. Using Xcode 14 is probably the best debugging experience I've had over the Apple Watch lifetime, but the standard is so low its not saying much. Once I have app building and debugging working I can do endless app builds to the watch without issue in one session. But its just getting it working initially thats the issue. Problems such as: Copying Watch debug symbols Saying Developer mode not enabled on watch when it is Getting a random failed to install WatchKit app on Xcode with no further details No paired Apple Watch even being listed for an iPhone that definitely has one You get this idea....
Dec ’22
Reply to Are old (CLKComplicationDataSource-based) complications still supported in new extensionless Watch targets?
I'm having lots of problems with my published app which I think are similar. Since merging my watch extension and watch app to one target it's wreaked havoc on my complications (I've not even started on WidgetKit yet and using that in my complications). My users are generally finding that complications templates all work find but they often get dashes "--" after updating my app. The only solution has been to change the complication in the slot to a different one, and then move it back again, al then works fine. I think it must be because of some bundle or id change in the complication but it's an absolute nightmare and I'd roll back if I didn't think I'd just get the same grief from all the users who it now works for. I'm targeting WatchOS 8 or later and the main app function is reading HealthKit data and displaying it on complications. On a separate but possible related note to this, since moving to one watch app target I've also gained duplicate HealthKit permissions in the iPhone Privacy Settings. I have a feedback in for this FB11704560 but it's been completely silent for over a month....
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’22