Thank you for pointing out! I tried it and it works very well. However, it has to be .accent for watchOS.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Nope. Still searching for it.
Topic:
Programming Languages
SubTopic:
Swift
Tags:
I fixed it. It seems like I have more than one instance of userDefaults. So I created a singleton for this like this -> static let userSettings = UserSettings().... Thank you for your advice🙏
Topic:
App & System Services
SubTopic:
General
Tags:
Same. I use same App Group for both targets. The app on watch works fine, but the widget cannot see updated userDefaults.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Thanks for the insight. Can you tell whether the widgets on watchOS always use the latest data in userDefaults?
In my case, I notice that the widgets doesn't always use the latest data even though the app itself uses the latest data (can confirm that watch app receive latest userDefaults from iPhone). It is like after some times (sometimes in minutes sometimes in hours), the widgets will start using latest data in userDefaults.
Topic:
App & System Services
SubTopic:
General
Tags:
Doesn't work either.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
One size, but how many of it? Do you have any widgets on Lock Screen?
Topic:
App & System Services
SubTopic:
General
Tags:
Hello, Thank you for your solution. I have both main app and widget extension running at the same time now. But for the widget, there is no Print out. (print statement from my code). However, the main app shows print out normally. Any idea how to get the print out from widget extension? Note that the breakpoints work just fine for both main app and widget extension.
Topic:
App & System Services
SubTopic:
General
Tags:
Yeah, but what they said we will need to manually start debugging session. But I just cannot do it. It seems like it is debugging but there is no printout.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
This solves my problem. Thank you
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Does this 72 manual refreshes include when WidgetCenter.shared.reloadAllTimelines() is called within the app? (Or it only includes when timeline is refresh automatically based on refresh policy?) Thank you.
Topic:
App & System Services
SubTopic:
General
Tags:
I have experience the same problem. I have tried both iPad and Mac idiom, the text are blurry.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags:
Thank you. I'm novice here.... Could you please give me a sample code of how to implementing this function? I am using SwiftUI and I do not have Scene Delegate. I am not sure where I should put this code.
Thank you
Topic:
Programming Languages
SubTopic:
Swift
Tags:
I also experienced this. I had 2 extensions and in one of them I used WidgetBundle. And when I added all of my widgets in iPhone, I found that sometimes not all widgets were reloaded when I called WidgetCenter.shared.reloadAllTimelines().
Topic:
App & System Services
SubTopic:
General
Tags: