Post

Replies

Boosts

Views

Activity

Reply to What is the proper way of adding ActivityKit Widget to existing WidgetBundle supporting iOS 15?
@PinStudios Where you able to solve this? Im having the same issue, was able to solve it for lower version with the code below, but then it stops working for iOS 17. struct MyWidgetBundle: WidgetBundle { var body: some Widget { if #available(iOS 17, *) { // If iOS 17 allow both widgets + live activity return WidgetBundleBuilder.buildBlock(MyWidget(), MyFavouriteWidget(), MyWidgetLiveActivity()) } else { // This widgets wrap other validations to allow different widgets depending of the version return Widgets() } } private func Widgets() -> some Widget { if #available(iOS 16.1, *) { // If iOS 16.1 allow Favourite widget + live activity return WidgetBundleBuilder.buildBlock(MyFavouriteWidget(), MyWidgetLiveActivity()) } else { // If lower just allow Favourite Widget return MyFavouriteWidget() } } }
Feb ’24
Reply to Keyboard cause crash Xcode 13 beta 5, iOS 15
Well at the end I find a solution, but Im quite sure that was probably to complicated. My app was generated with Xcode 10, so I decided to create a new project with the Xcode 13 and move all the folders and configurations to this new project, that solved my error and any other problem that I was having. If anybody had a better solution please shared.
Sep ’21