Files
OrderScheduling/Pods/SwiftEntryKit/Source/Utils/HapticFeedbackGenerator.swift
DDIsFriend f0e8a1709d initial
2023-08-18 17:28:57 +08:00

21 lines
502 B
Swift

//
// HapticFeedbackGenerator.swift
// SwiftEntryKit
//
// Created by Daniel Huri on 4/20/18.
// Copyright (c) 2018 huri000@gmail.com. All rights reserved.
//
import UIKit
struct HapticFeedbackGenerator {
@available(iOS 10.0, *)
static func notification(type: EKAttributes.NotificationHapticFeedback) {
guard let value = type.value else {
return
}
let generator = UINotificationFeedbackGenerator()
generator.notificationOccurred(value)
}
}