mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
20 lines
364 B
Swift
20 lines
364 B
Swift
//
|
|
// Haptics.swift
|
|
// StikDebug
|
|
//
|
|
|
|
import UIKit
|
|
|
|
enum Haptics {
|
|
static func light() {
|
|
UIImpactFeedbackGenerator(style: .light).impactOccurred()
|
|
}
|
|
|
|
static func medium() {
|
|
UIImpactFeedbackGenerator(style: .medium).impactOccurred()
|
|
}
|
|
|
|
static func selection() {
|
|
UISelectionFeedbackGenerator().selectionChanged()
|
|
}
|
|
}
|