Fix updating of page commands
This commit is contained in:
@ -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()
|
||||
}
|
Reference in New Issue
Block a user