data parsing시 이름이 일치하지 않아 에러나던 버그 수정
This commit is contained in:
parent
78f80cebd5
commit
d75367c78b
|
@ -24,8 +24,8 @@ struct ContentMainCurationItemView: View {
|
||||||
|
|
||||||
ScrollView(.horizontal, showsIndicators: false) {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
LazyHStack(alignment: .top, spacing: 13.3) {
|
LazyHStack(alignment: .top, spacing: 13.3) {
|
||||||
ForEach(0..<item.audioContents.count, id: \.self) {
|
ForEach(0..<item.contents.count, id: \.self) {
|
||||||
let audioContent = item.audioContents[$0]
|
let audioContent = item.contents[$0]
|
||||||
ContentMainItemView(item: audioContent)
|
ContentMainItemView(item: audioContent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,6 +77,7 @@ final class ContentMainViewModel: ObservableObject {
|
||||||
self.isShowPopup = true
|
self.isShowPopup = true
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
|
print(error)
|
||||||
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
|
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
|
||||||
self.isShowPopup = true
|
self.isShowPopup = true
|
||||||
self.isLoading = false
|
self.isLoading = false
|
||||||
|
|
|
@ -35,7 +35,7 @@ struct GetAudioContentMainItem: Decodable {
|
||||||
struct GetAudioContentCurationResponse: Decodable {
|
struct GetAudioContentCurationResponse: Decodable {
|
||||||
let title: String
|
let title: String
|
||||||
let description: String
|
let description: String
|
||||||
let audioContents: [GetAudioContentMainItem]
|
let contents: [GetAudioContentMainItem]
|
||||||
}
|
}
|
||||||
|
|
||||||
struct GetAudioContentBannerResponse: Decodable {
|
struct GetAudioContentBannerResponse: Decodable {
|
||||||
|
|
Loading…
Reference in New Issue