Skip to content

Commit

Permalink
[Feat] #53 �LongPressGesture 구현 (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
l1004ga authored Oct 22, 2024
2 parents f1083c7 + fca2424 commit 4a23dc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Macro/Domain/UseCase/TempoUseCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class TempoUseCase {

func updateTempo(newBpm: Int) {
// 사용자가 변경한 BPM을 각 장단별 데이터 객체에 저장 요청
templateUseCase.updateTempo(newBpm: newBpm)
if 10...200 ~= newBpm {
templateUseCase.updateTempo(newBpm: newBpm)
}
}
}
2 changes: 2 additions & 0 deletions Macro/Screen/MetronomeScreen/MetronomeControlView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ struct MetronomeControlView: View {
.foregroundStyle(.textButtonSecondary)
}
})
.buttonRepeatBehavior(.enabled)

Text("\(viewModel.state.bpm)")
.font(.custom("Pretendard-Medium", size: 64))
Expand All @@ -52,6 +53,7 @@ struct MetronomeControlView: View {
.foregroundStyle(.textButtonSecondary)
}
})
.buttonRepeatBehavior(.enabled)
}

Spacer()
Expand Down

0 comments on commit 4a23dc2

Please sign in to comment.