오디션 배역 상세 페이지 추가
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user