Post

Replies

Boosts

Views

Activity

Reply to Migrating ClockKit complications to WidgetKit not working
Hello. Not exactly the same problem as the author has, but still "WidgetKit complications not working". After migrating to WidgetKit complications I can't make them update whenever data is changed in the main app. I've checked lots of docs and Apple sample code I was able to find, but neither mention what is the proper way to trigger WidgetKit complications timeline reload. With ClockKit we had a very clear way to do that. Any advice would be HIGHLY welcome! Thank you! πŸ™‡β€β™‚οΈ See my question for full details: https://developer.apple.com/forums/thread/735352
Aug ’23
Reply to WatchOS 9 complications with WidgetKit - daily limit.
Just migrated ClockKit complications to WidgetKit complications, and have a similar issue. Though in my case widgets won't update at all if the watch app is not in the foreground. Sometimes widgets update after opening and closing the watch app, but usually, I need to switch to a different watch face to force them to update πŸ˜• Any ideas? I use WidgetCenter.shared.reloadAllTimelines() method on the watch app to trigger the reload. P.S. See full question here: https://developer.apple.com/forums/thread/735352
Aug ’23
Reply to Userdefaults for complications are nil while watch is working fine
Hey there! Have had a similar issue after migrating ClockKit complications to WidgetKit. πŸ€“ You must enable App Group not only to Watch Widget Extension, but for the Watch app target as well. This should solve your issue (solved for me). P.S. I still have issues with WidgetKit complications not updating, even though Watch Widget Extension has access to the data: https://developer.apple.com/forums/thread/735352
Aug ’23
Reply to WidgetKit complications won't update
My recent research yielded some results. We've been updating our Watch app, which is WatchKit based, to support watchOS 10 features. We've added new SwiftUI scenes to it, and the app itself works like a charm - no issues whatsoever. However, it appears that WatchKit apps have issues with WidgetKit complications - they won't update (or will have a significant delay) even when the app is in the foreground (such updates do not count towards the daily update quota). However, this issue is not observed if the Watch app is pure SwiftUI - widgets will update immediately, including Smart Stack widget. Therefore, we are rewriting our Watch app to SwiftUI and getting rid of ClockKit completely (doing this forced us to increase the minimum watchOS version to 9.0 πŸ€·β€β™‚οΈ). Hope that will be helpful to someone. πŸ€“ P.S. All said above doesn't solve the issue with data communication not happening between iPhone and Watch if the Watch app is in the background.
Sep ’23
Reply to Wrong fonts loaded from Storyboards in Xcode 15
This issue is mentioned in Xcode 15 Release Notes: Note: Interface Builder documents using custom App fonts may load incorrect font at runtime. To workaround this, set font manually in code. P.S. I have opened a Feedback Request for this issue after the Xcode 15 Beta 2, but it isn't fixed in release version. Therefore, I wouldn't hold my breath for it to be fixed any time soon. Probably, Interface Builder is now considered a legacy technology, so it doesn't get as much attention anymore... πŸ€·β€β™‚οΈ
Sep ’23
Reply to Journaling Suggestions not avail in Xcode 15.1 beta (15C5042i)?
The SwiftUI view is named JournalingSuggestionsPicker, not SuggestionsPicker, as stated in documentation. The following code compiles in Xcode 15.1 Beta 2 for the device running iOS 17.2 Public Beta: import JournalingSuggestions import SwiftUI @available(iOS 17.2, *) struct TestView: View { var body: some View { JournalingSuggestionsPicker { Text("See recent events") } onCompletion: { suggestion in print("\(suggestion)") } } }
Nov ’23