PresentSheetNotify.swift (483B)
1 // 2 // PresentSheetNotify.swift 3 // damus 4 // 5 // Created by William Casarin on 2023-07-30. 6 // 7 8 import Foundation 9 10 struct PresentSheetNotify: Notify { 11 typealias Payload = Sheets 12 var payload: Payload 13 } 14 15 extension NotifyHandler { 16 static var present_sheet: NotifyHandler<PresentSheetNotify> { 17 .init() 18 } 19 } 20 21 extension Notifications { 22 static func present_sheet(_ sheet: Sheets) -> Notifications<PresentSheetNotify> { 23 .init(.init(payload: sheet)) 24 } 25 }