Fix updating of page commands

This commit is contained in:
Christoph Hagen
2025-01-27 22:30:27 +01:00
parent e02bfd17d2
commit 89062f153c
7 changed files with 201 additions and 67 deletions

View File

@ -0,0 +1,25 @@
import SwiftUI
import SFSafeSymbols
protocol InsertableCommandView: View {
associatedtype Model: InsertableCommandModel
static var title: String { get }
static var sheetTitle: String { get }
static var icon: SFSymbol { get }
init(model: Model)
}
protocol InsertableCommandModel: ObservableObject {
var isReady: Bool { get }
var command: String? { get }
init()
}