diff --git a/BubbleWidgets/BubbleWidgetsBundle.swift b/BubbleWidgets/BubbleWidgetsBundle.swift index 298c919..49740b9 100644 --- a/BubbleWidgets/BubbleWidgetsBundle.swift +++ b/BubbleWidgets/BubbleWidgetsBundle.swift @@ -7,12 +7,30 @@ import UIKit @main struct BubbleWidgetsBundle: WidgetBundle { var body: some Widget { + if #available(iOSApplicationExtension 18.0, *) { + return NewBundle + } else { + return PrevBundle + } + } + + @available(iOS 18.0, *) + @WidgetBundleBuilder + private var NewBundle: some Widget { FollowCountWidget() FollowGoalWidget() CreatePostWidget() - if #available(iOS 18.0, *) { - CreatePostControl() - } + // iOS 18 + CreatePostControl() + } + + @WidgetBundleBuilder + private var PrevBundle: some Widget { + FollowCountWidget() + FollowGoalWidget() + CreatePostWidget() } } + +