오디션 배역 상세 페이지 추가

This commit is contained in:
Yu Sung
2025-01-07 01:10:20 +09:00
parent 739a9b42b7
commit 36028aa108
19 changed files with 531 additions and 5 deletions

View File

@@ -45,7 +45,13 @@ struct AuditionDetailView: View {
LazyVStack(spacing: 15) {
ForEach(0..<response.roleList.count, id: \.self) {
let role = response.roleList[$0]
AuditionDetailRoleItemView(item: response.roleList[$0])
.onTapGesture {
AppState.shared
.setAppStep(step: .auditionRoleDetail(roleId: role.roleId))
}
}
}
}

View File

@@ -20,7 +20,7 @@ final class AuditionDetailViewModel: ObservableObject {
@Published var response: GetAuditionDetailResponse? = nil
@Published var title: String = "보이스온"
func getAuditionDetail(auditionId: Int, onFailure: () -> Void) {
func getAuditionDetail(auditionId: Int, onFailure: @escaping () -> Void) {
isLoading = true
repository.getAuditionDetail(auditionId: auditionId)