downloading tendie from url scheme
This commit is contained in:
1 parent
7c0cb386a7
commit
744a243080
6 files changed
+176
-2
No files matched your search
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// Haptic++.swift
|
||||
// PsychicPaper
|
||||
//
|
||||
// Created by Hariz Shirazi on 2023-02-04.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import UIKit
|
||||
|
||||
class Haptic {
|
||||
static let shared = Haptic()
|
||||
|
||||
private init() { }
|
||||
|
||||
func play(_ feedbackStyle: UIImpactFeedbackGenerator.FeedbackStyle) {
|
||||
UIImpactFeedbackGenerator(style: feedbackStyle).impactOccurred()
|
||||
}
|
||||
|
||||
func notify(_ feedbackType: UINotificationFeedbackGenerator.FeedbackType) {
|
||||
UINotificationFeedbackGenerator().notificationOccurred(feedbackType)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user