Post

Replies

Boosts

Views

Activity

WidgetEntryPointFactory' does not conform to `NonUIEntryPoint` when previewing watch widget
Following the sample notes at https://developer.apple.com/documentation/widgetkit/creating-lock-screen-widgets-and-watch-complications, when I try to preview the Watch widget, I get an error saying: Cannot preview in this file WidgetEntryPointFactory' does not conform to NonUIEntryPoint 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 187: update> App widgets preview fine though. Am I doing something obviously wrong?
8
2
2k
Jun ’22
Dynamically compile shader and access it through SwiftUI's ShaderLibrary
Is it possible to dynamically compile a shader (at runtime) using something like MTLDevices makeLibrary, and convert that over to a SwiftUI ShaderLibrary? In theory it looks like it should be possible - ShaderLibrary can be initialised with a data parameter which according to the docs is a compiled shader library, but I'm not sure how I'd go about converting a MTLLibrary to data. Is this possible at all?
0
1
395
Jul ’23