26 lines
405 B
Swift
26 lines
405 B
Swift
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()
|
|
}
|