Post

Replies

Boosts

Views

Activity

WidgetKit - configurable widget with array parameter
Hello, I'm creating a widget to display some data for a selected account (from a larger list of accounts). A dynamic intent allows the user to select the account to display in the widget from this list. I have this working just fine. I'd like to allow the Medium version of this widget to display 2 selected accounts, and a Large widget to display 4 selected accounts. From WWDC video I thought I could enable the Array (Supports multiple values) property of the parameter in the intent definition, with Fixed Sizes set to Small=1, Medium=2, Large=4. For example, the user could configure the 2 accounts to display on a Medium widget, the 4 accounts to display on the Large widget, etc THE PROBLEM: Whenever I specify an Array type for the single account selection parameter, it appears Springboard crashes when the user goes to add an initial instance of the widget to the Home screen, i.e. I can long-press and click + to get to the widget gallery ... but within moments this screen goes blank (with a spinner) and resets back to lock screen. As soon as I turn off the Array property of the parameter, it goes back to working correctly but without the desired configurability. QUESTION: Are Array parameters supposed to work with WidgetKit?
1
0
585
Jan ’21
Xcode 12 beta 3 - error compiling for Simulator
An existing framework library workspace compiles without error when targeting iOS device architecture, but when targeting Simulator I receive the following error: in /Users/chris/Downloads/Xcode-beta 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib/darwin/libclang_rt.ios.a(floatditf.c.o), building for iOS Simulator, but linking in object file (/Users/chris/Downloads/Xcode-beta 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib/darwin/libclang_rt.ios.a(floatditf.c.o)) built for iOS, file '/Users/chris/Downloads/Xcode-beta 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib/darwin/libclang_rt.ios.a' for architecture arm64 As this error is referencing platform code I suspect there is some flaw in the Xcode beta (I didn't have this issue with beta 2). Has anyone else seen this?
4
0
6.4k
Jul ’20