Skip to content

Commit

Permalink
✨[feat]: gif 추가 및 명언 굽고 명언 좋아요 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy-wonji committed Nov 16, 2023
1 parent 7722a8e commit a54c1f4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public struct ChoiceBreadView: View {
}
.frame(height: UIScreen.screenHeight * 0.9)
.task {
viewModel.choicedBread = nil
bakeViewModel.commCodeRequest(commCdTpCd: .source)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public struct ChoiceIngredentView: View {

}
.task {
viewModel.choicedIngredent = nil
bakeViewModel.commCodeRequest(commCdTpCd: .flavor)

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public struct ChoiceToppingView: View {

}
.task {
self.viewModel.tmpChoicedTopping = nil
bakeViewModel.commCodeRequest(commCdTpCd: .mood)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public struct HomeBakingView: View {
.frame(width: 200, height: 200)

Spacer()

startButtonView()
.padding(.bottom, 30)
}
Expand Down Expand Up @@ -93,6 +94,9 @@ public struct HomeBakingView: View {
Text("시작하기")
.foregroundColor(.basicWhite)
.onTapGesture {
viewModel.choicedBread = nil
viewModel.choicedIngredent = nil
viewModel.tmpChoicedIngredent = nil
appState.isStartBake.toggle()
}
}
Expand All @@ -105,6 +109,10 @@ public struct HomeBakingView: View {
.font(.system(size: 16))
}
.onTapGesture {
viewModel.choicedBread = nil
viewModel.choicedIngredent = nil
viewModel.tmpChoicedIngredent = nil

backAction()
}
} .pretendardFont(family: .SemiBold, size: 16)
Expand Down

0 comments on commit a54c1f4

Please sign in to comment.