Skip to content

Commit

Permalink
Vibrate on finish
Browse files Browse the repository at this point in the history
  • Loading branch information
dankimio committed Oct 22, 2023
1 parent 3e6834a commit e579702
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FlipTimer/View Models/TimerViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ final class TimerViewModel: ObservableObject {
audioPlayer = try! AVAudioPlayer(contentsOf: url)
audioPlayer?.play()
audioPlayer?.delegate = audioPlayerDelegate

// Source: https://stackoverflow.com/a/33693071/2505156
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate)
}
}

Expand Down

0 comments on commit e579702

Please sign in to comment.