Post

Replies

Boosts

Views

Activity

Comment on Cannot debug widget in a watch target using Xcode 14.1
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:
Dec ’22
Comment on WidgetKit complications won't update
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:
Sep ’23
Comment on Can an app have multiple widget extensions?
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:
Replies
Boosts
Views
Activity
Jul ’21
Comment on SwiftUI Mac Catalyst how to programmatically close / minimize window
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:
Replies
Boosts
Views
Activity
Jul ’22
Comment on UILabel rendered in cgContext is blurry on Mac Catalyst
I have experience the same problem. I have tried both iPad and Mac idiom, the text are blurry.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on Does widgets on Mac have timeline reload budget or limit?
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:
Replies
Boosts
Views
Activity
Sep ’22
Comment on File not detected by other files upon moving to a folder
This solves my problem. Thank you
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Strange problem for widgets on iOS 16.1 - Cannot debug widget extension in Xcode 14.1
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.
Replies
Boosts
Views
Activity
Nov ’22
Comment on Cannot debug widget in a watch target using Xcode 14.1
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:
Replies
Boosts
Views
Activity
Dec ’22
Comment on getTimeline called twice on load
One size, but how many of it? Do you have any widgets on Lock Screen?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on Xcode 14.3.1 Cannot Rearrange App Icons on Simulators
Doesn't work either.
Replies
Boosts
Views
Activity
Aug ’23
Comment on WidgetKit complications won't update
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:
Replies
Boosts
Views
Activity
Sep ’23
Comment on Userdefaults for complications are nil while watch is working fine
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:
Replies
Boosts
Views
Activity
Sep ’23
Comment on WidgetKit complications won't update
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:
Replies
Boosts
Views
Activity
Oct ’23
Comment on Does setAlternateIconName work in mac Catalyst?
Nope. Still searching for it.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’24
Comment on Is there a way to detect when Apple Watch Ultra is in Night mode?
Thank you for pointing out! I tried it and it works very well. However, it has to be .accent for watchOS.
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’24