In my case, a published property in an environment object is passed into a map view wrapped in UIViewRepresentable, and used in makeUIView(). When the property changes, it does not trigger creation of a new map view. Looks like a SwiftUI π
Post
Replies
Boosts
Views
Activity
It happens to my project too, but does not reproduce in a simple app. Could you examine the compiler logic regarding @Binding var?
Why is it necessary to cast to AnyView?
It's a mistake in my source code. How to delete this post?
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.
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>
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
To clarify the question: how to display an Array of Links?
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.
There is an exception at the get method of a model property: Thread 1: EXC_BREAKPOINT (code=1, subcode=0x24afae96c)
iPad shows the same error for me.
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?
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.
I'm also stuck here. In my case it seems caused by the appearance of the model in the predicate of a fetch descriptor.
With @Observable or SwiftData model, how to share data between iOS app and widgets, if @AppStorage is unavailable?