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