This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Observable class UnreadMessageModel { | |
var showStatus: Bool | |
var statusText: String | |
init(showStatus: Bool, statusText: String) { | |
self.showStatus = showStatus | |
self.statusText = statusText | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol PencilStrokeEditAble: AnyObject { | |
var startPoint: CGPoint? { get set } | |
var initialStrokeCount: Int { get set } | |
var inkTool: PKInkingTool { get set } | |
func beginStroke(at point: CGPoint, initialStrokeCount: Int) | |
func updateStroke(to point: CGPoint) -> PKStroke? | |
func endStroke() | |
func update(inkTool: PKInkingTool) | |
} |