Post

Replies

Boosts

Views

Activity

Comment on What is the proper way of adding ActivityKit Widget to existing WidgetBundle supporting iOS 15?
This does not work if you check for iOS 17, then iOS 16, ... if #available(iOS 17.0, *) { return WidgetBundleBuilder.buildBlock(A(), B(), C()) } else if #available(iOS 16.0, *) { return WidgetBundleBuilder.buildBlock(A(), B()) } else { return WidgetBundleBuilder.buildBlock(A()) }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’24