Post

Replies

Boosts

Views

Activity

Reply to WidgetBundle with ControlWidget does not work on iOS 17
@devdevdev I think this should work var body: some Widget { widgets() } func widgets() -> some Widget { if #available(iOSApplicationExtension 18.0, *) { return iOS18Widgets } else { return iOS17Widgets } } @WidgetBundleBuilder var iOS17Widgets: some Widget { LiveActivityWidget() HomeScreenWidget() LockScreenWidget() } @available(iOSApplicationExtension 18.0, *) @WidgetBundleBuilder var iOS18Widgets: some Widget { LauncherControl() LiveActivityWidget() HomeScreenWidget() LockScreenWidget() } It combines the idea of this thread with the workaround mentioned in https://www.avanderlee.com/swiftui/variable-widgetbundle-configuration/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’24
Reply to SwiftData Crash On Models With Relationships Deletion
I do also face the crashing in the same situation. I have a parent child relationship which have a 1:many relationship. Deleting child elements works fine, but as soon as I want to delete the parent the application is crashing for me in Xcode 15.0 Beta 2. I do hope this is still a beta issue or there is some official of way of deleting such a relationship gracefully in the future.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’23
Reply to AppIntentsPackage protocol with SPM package not working
Hey @joeycarmello thanks a lot for your hint. This actually fixes the compilation error, so building works fine but then the app shortcut does not show up in the Shortcuts app. But if I then remove the prefixes again and build again it works. But - if I then do a clean and try to build again it fails with the initial error message. All in all, very weird tbh. I currently assume that the setup I have is not fully compatible with the current beta. Which I really do hope gets fixed with the next beta though.
Topic: App & System Services SubTopic: General Tags:
Jun ’23
Reply to Using ConcentricRectangle as a ButtonBorderShape
After Beta 5 has been released today, I checked again but still couldn't find a way to conform a ButtonBorderButtonShape to conform to the ConcentricRectangle behaviour. Is there a recommended way to do that or has anyone found out a way to do that? Any help is appreciated :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to WidgetBundle with ControlWidget does not work on iOS 17
@devdevdev I think this should work var body: some Widget { widgets() } func widgets() -> some Widget { if #available(iOSApplicationExtension 18.0, *) { return iOS18Widgets } else { return iOS17Widgets } } @WidgetBundleBuilder var iOS17Widgets: some Widget { LiveActivityWidget() HomeScreenWidget() LockScreenWidget() } @available(iOSApplicationExtension 18.0, *) @WidgetBundleBuilder var iOS18Widgets: some Widget { LauncherControl() LiveActivityWidget() HomeScreenWidget() LockScreenWidget() } It combines the idea of this thread with the workaround mentioned in https://www.avanderlee.com/swiftui/variable-widgetbundle-configuration/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Duplicated Signature when archiving a multi platform project
For me Xcode 15 Beta 6 is fixing the issue. It's working in the mentioned setup and I do not face the duplicated signature issue any longer. @oswaldo I do not see any duplicated process steps in my build logs any longer in Beta 6. @ksuther I see this a macOS project ? For this I did not try it yet, since the project is mobile only atm.
Replies
Boosts
Views
Activity
Aug ’23
Reply to dropDestination does not work inside List
I can confirm it's also not working for me when I want to drag and drop items between two sections in a list. If I remove the list, as described above, it works but within one list declaration I am not able to. This is still an issue in Xcode 15.0 Beta 4
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to SwiftData Crash On Models With Relationships Deletion
I do also face the crashing in the same situation. I have a parent child relationship which have a 1:many relationship. Deleting child elements works fine, but as soon as I want to delete the parent the application is crashing for me in Xcode 15.0 Beta 2. I do hope this is still a beta issue or there is some official of way of deleting such a relationship gracefully in the future.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to AppIntentsPackage protocol with SPM package not working
Hey @joeycarmello thanks a lot for your hint. This actually fixes the compilation error, so building works fine but then the app shortcut does not show up in the Shortcuts app. But if I then remove the prefixes again and build again it works. But - if I then do a clean and try to build again it fails with the initial error message. All in all, very weird tbh. I currently assume that the setup I have is not fully compatible with the current beta. Which I really do hope gets fixed with the next beta though.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’23