Skip to content

Commit

Permalink
[Design] #375 박자 Blink 조절 화면 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
l1004ga committed Jan 31, 2025
1 parent 346d8f3 commit 96268f9
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions Macro/Screen/MetronomeScreen/MetronomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct MetronomeView: View {

var body: some View {
VStack(spacing: 0) {
// 1. 메트로놈 박자 표시 뷰
// MARK: 1. 메트로놈 박자 표시 뷰
VStack(spacing: 12) {
HanbaeBoardView(
jangdan: viewModel.state.jangdanAccent,
Expand All @@ -43,16 +43,28 @@ struct MetronomeView: View {
.frame(height: 372)
.padding(.horizontal, 8)

// 2. 소박 듣기, 소박 보기 뷰
if let sobakSegmentCount = self.viewModel.state.currentJangdanType?.sobakSegmentCount {
ViewSobakToggleView(isSobakOn: $isSobakOn)
.padding(.bottom, 16)
} else {
ListenSobakToggleView(isSobakOn: $isSobakOn)
.padding(.bottom, 16)
// MARK: 2. 소박 듣기, 소박 보기 뷰
HStack(spacing: 10) {

Button {

} label: {
if let sobakSegmentCount = self.viewModel.state.currentJangdanType?.sobakSegmentCount {
ViewSobakToggleView(isSobakOn: $isSobakOn)
} else {
ListenSobakToggleView(isSobakOn: $isSobakOn)
}
}

Button {

} label: {
DisplayBlinkView()
}
}
.padding(.bottom, 16)

// 3. BPM 및 재생 조절 뷰
// MARK: 3. BPM 및 재생 조절 뷰
MetronomeControlView()
}
// 빠르기 찾기 기능 비활성화 용도
Expand All @@ -72,5 +84,5 @@ struct MetronomeView: View {
}

#Preview {
MetronomeView(viewModel: DIContainer.shared.metronomeViewModel, jangdanName: "진양")
MetronomeView(viewModel: DIContainer.shared.metronomeViewModel, jangdanName: "자진모리")
}

0 comments on commit 96268f9

Please sign in to comment.