mirror of
https://github.com/lumaa-dev/BubbleApp.git
synced 2024-12-28 17:50:15 +01:00
20 lines
539 B
Swift
20 lines
539 B
Swift
// Made by Lumaa
|
|
|
|
import SwiftUI
|
|
import WidgetKit
|
|
|
|
@available(iOS 18.0, *)
|
|
struct CreatePostControl: ControlWidget {
|
|
let kind: String = "CreatePostControl"
|
|
|
|
var body: some ControlWidgetConfiguration {
|
|
StaticControlConfiguration(kind: kind) {
|
|
ControlWidgetButton(action: OpenComposerIntent()) {
|
|
Label("control.open.composer", systemImage: "square.and.pencil")
|
|
}
|
|
}
|
|
.displayName("control.open.composer")
|
|
.description("control.open.composer.description")
|
|
}
|
|
}
|