You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
Use an enum to add some taptic engine functionality to small feature points throughout the app:
public enum Vibration {
case Light
case Medium
case Heavy
@available(iOS 10.0, *)
func hapticFeedback() -> UIImpactFeedbackGenerator {
switch self {
case .Heavy:
return UIImpactFeedbackGenerator(style: .heavy)
case .Medium:
return UIImpactFeedbackGenerator(style: .medium)
case .Light:
return UIImpactFeedbackGenerator(style: .light)
}
}
}
Taptic Engine
Use an
enum
to add some taptic engine functionality to small feature points throughout the app:And implement a global func API using:
Sounds
The already implemented SwiftySound file will allow for quick sounds to be played.
For Example, using:
Sound.play(file: "dog.wav")
orSound.play(url: fileURL)
The text was updated successfully, but these errors were encountered: