diff --git a/MiamiSunglasses/ViewController.swift b/MiamiSunglasses/ViewController.swift index 1f20d2d..05910bd 100644 --- a/MiamiSunglasses/ViewController.swift +++ b/MiamiSunglasses/ViewController.swift @@ -42,10 +42,10 @@ class ViewController: UIViewController, AVAudioPlayerDelegate { print(soundIsPlaying) if !soundIsPlaying { - + soundIsPlaying = true yeah.play() - soundIsPlaying = true + } else { @@ -72,4 +72,3 @@ class ViewController: UIViewController, AVAudioPlayerDelegate { } -