Overhaul native approval UX and add widget surfaces
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
Bring the SwiftUI app in line with the Apple-native mock and keep pending approvals actionable from Live Activities and watch complications.
This commit is contained in:
16
swift/WatchApp/Design/Haptics.swift
Normal file
16
swift/WatchApp/Design/Haptics.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
import SwiftUI
|
||||
import WatchKit
|
||||
|
||||
enum Haptics {
|
||||
static func success() {
|
||||
WKInterfaceDevice.current().play(.success)
|
||||
}
|
||||
|
||||
static func warning() {
|
||||
WKInterfaceDevice.current().play(.failure)
|
||||
}
|
||||
|
||||
static func selection() {
|
||||
WKInterfaceDevice.current().play(.click)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user