17 lines
306 B
Swift
17 lines
306 B
Swift
|
|
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)
|
||
|
|
}
|
||
|
|
}
|