Post

Replies

Boosts

Views

Activity

Reply to Value based colors
I'm trying to plot 2 lines (daily minimum and maximum temperatures). PointMark's do have individual colors, but look like crowded dots, and lose the sense of 2 lines, so it's not a good solution.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
Reply to WidgetEntryPointFactory' does not conform to `NonUIEntryPoint` when previewing watch widget
In Xcode 14 beta 3, create a watch only app, create a widget extension: RemoteHumanReadableError: Type 'WidgetEntryPointFactory' does not conform to NonUIEntryPoint (in framework at path /System/Library/PrivateFrameworks/ChronoCore.framework/Support/WidgetPreviewsExtensionAgent.bundle) ================================== |  MessageSendFailure: Message send failure for <ServiceMessage 43: update>
Jul ’22
Reply to App group shared user defaults
It's new code. After sharing data with statements like following: @AppStorage("variable", store: UserDefaults(suiteName: "group.com.company.App")) var variable I don't seem to get any data shared from iOS app to watch app. Xcode 14 beta 3 gives warning: [User Defaults] Couldn't read values in CFPrefsPlistSource<0x14698af0> (Domain: group.com.company.App, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
Topic: App & System Services SubTopic: General Tags:
Jul ’22
Reply to Explain Map() position
It seems the behavior of fallback automatic. After initial display, setting position programmatically has no effect -- I wrote a feedback on this bug. In my app, tapping the user location button has no effect either, but I couldn't create a simple app to reproduce it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’23
Reply to Transaction revocationDate
It's a mistake in my source code. How to delete this post?
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’21
Reply to Value based colors
I'm trying to plot 2 lines (daily minimum and maximum temperatures). PointMark's do have individual colors, but look like crowded dots, and lose the sense of 2 lines, so it's not a good solution.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to WidgetEntryPointFactory' does not conform to `NonUIEntryPoint` when previewing watch widget
In Xcode 14 beta 3, create a watch only app, create a widget extension: RemoteHumanReadableError: Type 'WidgetEntryPointFactory' does not conform to NonUIEntryPoint (in framework at path /System/Library/PrivateFrameworks/ChronoCore.framework/Support/WidgetPreviewsExtensionAgent.bundle) ================================== |  MessageSendFailure: Message send failure for <ServiceMessage 43: update>
Replies
Boosts
Views
Activity
Jul ’22
Reply to App group shared user defaults
It's new code. After sharing data with statements like following: @AppStorage("variable", store: UserDefaults(suiteName: "group.com.company.App")) var variable I don't seem to get any data shared from iOS app to watch app. Xcode 14 beta 3 gives warning: [User Defaults] Couldn't read values in CFPrefsPlistSource<0x14698af0> (Domain: group.com.company.App, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to How to display [Link]?
To clarify the question: how to display an Array of Links?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to iOS widget always displaying placeholder on simulator or device
With static configuration, widget extensions work for my app with some families (circular, rectangular), remain blank with some families (corner, inline) on watch. Always show place holders on iPhone.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to cannot open file
There is an exception at the get method of a model property: Thread 1: EXC_BREAKPOINT (code=1, subcode=0x24afae96c)
Replies
Boosts
Views
Activity
Jun ’23
Reply to cannot open file
iPad shows the same error for me.
Replies
Boosts
Views
Activity
Jun ’23
Reply to Should LocalizedStringResource be Sendable?
LocalizedStringKey is Sendable. How do the two differ? The documentation of LocalizedStringResource says: A reference to a localizable string, accessible from another process. Does it mean it's Sendable?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to Explain Map() position
It seems the behavior of fallback automatic. After initial display, setting position programmatically has no effect -- I wrote a feedback on this bug. In my app, tapping the user location button has no effect either, but I couldn't create a simple app to reproduce it.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to How to make SwiftData class Codable
I'm also stuck here. In my case it seems caused by the appearance of the model in the predicate of a fetch descriptor.
Replies
Boosts
Views
Activity
Jun ’23
Reply to @Observable and @AppStorage
With @Observable or SwiftData model, how to share data between iOS app and widgets, if @AppStorage is unavailable?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to Mark localized strings untranslatable
In the string catalog, links from keys to places where they are extracted would be helpful. I have keys like %@ and %1$@ %2$@ that I'd like to mark verbatim, but don't know where the sources are.
Replies
Boosts
Views
Activity
Jul ’23
Reply to English to English translation?
After killing the app on iPhone, and launch it on iPhone, all strings are displayed correctly. However, launching it again in Xcode, all strings are capital again. It's a bug🐞
Replies
Boosts
Views
Activity
Jul ’23
Reply to SwiftData and correct setup for AppGroup
To share data between iOS/watchOS app and extension, @AppStorage fetches data automatically. With SwiftData, if outside SwiftUI View, the programmer needs to create a fetch descriptor and fetch data manually. Is SwiftData really better than @AppStorage in ObsersableObject?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’23