2024-03-07 17:22:11 +01:00
|
|
|
//Made by Lumaa
|
|
|
|
|
|
|
|
import WidgetKit
|
|
|
|
import SwiftUI
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
@main
|
2024-09-15 15:15:46 +02:00
|
|
|
struct BubbleWidgetsBundle: WidgetBundle {
|
2024-03-07 17:22:11 +01:00
|
|
|
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 {
|
2024-03-07 17:22:11 +01:00
|
|
|
FollowCountWidget()
|
2024-03-07 18:26:53 +01:00
|
|
|
FollowGoalWidget()
|
2024-08-11 00:53:57 +02:00
|
|
|
CreatePostWidget()
|
|
|
|
|
2024-09-19 23:06:59 +02:00
|
|
|
// iOS 18
|
|
|
|
CreatePostControl()
|
|
|
|
}
|
|
|
|
|
|
|
|
@WidgetBundleBuilder
|
|
|
|
private var PrevBundle: some Widget {
|
|
|
|
FollowCountWidget()
|
|
|
|
FollowGoalWidget()
|
|
|
|
CreatePostWidget()
|
2024-03-07 17:22:11 +01:00
|
|
|
}
|
|
|
|
}
|
2024-09-19 23:06:59 +02:00
|
|
|
|
|
|
|
|