mirror of
https://github.com/lumaa-dev/BubbleApp.git
synced 2024-12-13 10:01:54 +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")
|
|
}
|
|
}
|