initial
This commit is contained in:
20
Pods/SwiftEntryKit/Source/Utils/HapticFeedbackGenerator.swift
generated
Normal file
20
Pods/SwiftEntryKit/Source/Utils/HapticFeedbackGenerator.swift
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user