Bubble/BubbleWidgets/BubbleWidgetsBundle.swift

37 lines
679 B
Swift
Raw Normal View History

//Made by Lumaa
import WidgetKit
import SwiftUI
import UIKit
@main
2024-09-15 15:15:46 +02:00
struct BubbleWidgetsBundle: WidgetBundle {
var body: some Widget {
2024-09-19 23:06:59 +02:00
if #available(iOSApplicationExtension 18.0, *) {
return NewBundle
} else {
return PrevBundle
}
}
@available(iOS 18.0, *)
@WidgetBundleBuilder
private var NewBundle: some Widget {
FollowCountWidget()
2024-03-07 18:26:53 +01:00
FollowGoalWidget()
CreatePostWidget()
2024-09-19 23:06:59 +02:00
// iOS 18
CreatePostControl()
}
@WidgetBundleBuilder
private var PrevBundle: some Widget {
FollowCountWidget()
FollowGoalWidget()
CreatePostWidget()
}
}
2024-09-19 23:06:59 +02:00