Skip to content

Commit

Permalink
♻️ (GEK): Allow to skip Melody touching outside Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
HPezz committed Dec 14, 2023
1 parent e979ed1 commit 9390b95
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ public extension MelodyView {
.blur(radius: self.viewModel.showModal ? 10 : 0)

if self.viewModel.showModal {
Color.clear
.frame(maxWidth: .infinity, maxHeight: .infinity)
.contentShape(Rectangle())
.onTapGesture {
self.viewModel.showModal = false
self.viewModel.midiPlayer.stop()
self.viewModel.startActivity()
}

PlayerButton(showModal: self.$viewModel.showModal) {
self.viewModel.playMIDIRecording()
}
Expand Down

0 comments on commit 9390b95

Please sign in to comment.