fix: 메인 홈 - 이벤트 배너 영역
- 기존 홈 탭 상단에 있는 배너 임시 추가
This commit is contained in:
@@ -10,6 +10,7 @@ struct GetHomeResponse: Decodable {
|
|||||||
let creatorRanking: [GetExplorerSectionCreatorResponse]
|
let creatorRanking: [GetExplorerSectionCreatorResponse]
|
||||||
let latestContentThemeList: [String]
|
let latestContentThemeList: [String]
|
||||||
let latestContentList: [AudioContentMainItem]
|
let latestContentList: [AudioContentMainItem]
|
||||||
|
let bannerList: [GetAudioContentBannerResponse]
|
||||||
let eventBannerList: GetEventResponse
|
let eventBannerList: GetEventResponse
|
||||||
let originalAudioDramaList: [SeriesListItem]
|
let originalAudioDramaList: [SeriesListItem]
|
||||||
let auditionList: [GetAuditionListItem]
|
let auditionList: [GetAuditionListItem]
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ struct HomeTabView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !viewModel.eventBannerList.isEmpty {
|
if !viewModel.eventBannerList.isEmpty {
|
||||||
SectionEventBannerView(items: viewModel.eventBannerList)
|
ContentMainBannerViewV2(bannerList: viewModel.eventBannerList)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !viewModel.originalAudioDramaList.isEmpty {
|
if !viewModel.originalAudioDramaList.isEmpty {
|
||||||
@@ -280,7 +280,7 @@ struct HomeTabView: View {
|
|||||||
|
|
||||||
- 대표 이메일 : sodalive.official@gmail.com
|
- 대표 이메일 : sodalive.official@gmail.com
|
||||||
""")
|
""")
|
||||||
.font(.custom(Font.medium.rawValue, size: 11))
|
.font(.custom(Font.preRegular.rawValue, size: 11))
|
||||||
.foregroundColor(Color.gray77)
|
.foregroundColor(Color.gray77)
|
||||||
.padding(.horizontal, 13.3)
|
.padding(.horizontal, 13.3)
|
||||||
}
|
}
|
||||||
@@ -298,12 +298,12 @@ struct HomeTabView: View {
|
|||||||
Text(viewModel.errorMessage)
|
Text(viewModel.errorMessage)
|
||||||
.padding(.vertical, 13.3)
|
.padding(.vertical, 13.3)
|
||||||
.frame(width: screenSize().width - 66.7, alignment: .center)
|
.frame(width: screenSize().width - 66.7, alignment: .center)
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.preRegular.rawValue, size: 12))
|
||||||
.background(Color.button)
|
.background(Color.button)
|
||||||
.foregroundColor(Color.white)
|
.foregroundColor(Color.white)
|
||||||
.multilineTextAlignment(.leading)
|
.multilineTextAlignment(.leading)
|
||||||
.cornerRadius(20)
|
.cornerRadius(20)
|
||||||
.padding(.bottom, 66.7)
|
.padding(.top, 66.7)
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ final class HomeTabViewModel: ObservableObject {
|
|||||||
@Published var creatorRanking: [GetExplorerSectionCreatorResponse] = []
|
@Published var creatorRanking: [GetExplorerSectionCreatorResponse] = []
|
||||||
@Published var latestContentThemeList: [String] = []
|
@Published var latestContentThemeList: [String] = []
|
||||||
@Published var latestContentList: [AudioContentMainItem] = []
|
@Published var latestContentList: [AudioContentMainItem] = []
|
||||||
@Published var eventBannerList: [EventItem] = []
|
@Published var eventBannerList: [GetAudioContentBannerResponse] = []
|
||||||
@Published var originalAudioDramaList: [SeriesListItem] = []
|
@Published var originalAudioDramaList: [SeriesListItem] = []
|
||||||
@Published var auditionList: [GetAuditionListItem] = []
|
@Published var auditionList: [GetAuditionListItem] = []
|
||||||
@Published var dayOfWeekSeriesList: [SeriesListItem] = []
|
@Published var dayOfWeekSeriesList: [SeriesListItem] = []
|
||||||
@@ -56,7 +56,7 @@ final class HomeTabViewModel: ObservableObject {
|
|||||||
self.creatorRanking = data.creatorRanking
|
self.creatorRanking = data.creatorRanking
|
||||||
self.latestContentThemeList = ["전체"] + data.latestContentThemeList
|
self.latestContentThemeList = ["전체"] + data.latestContentThemeList
|
||||||
self.latestContentList = data.latestContentList
|
self.latestContentList = data.latestContentList
|
||||||
self.eventBannerList = data.eventBannerList.eventList
|
self.eventBannerList = data.bannerList
|
||||||
self.originalAudioDramaList = data.originalAudioDramaList
|
self.originalAudioDramaList = data.originalAudioDramaList
|
||||||
self.auditionList = data.auditionList
|
self.auditionList = data.auditionList
|
||||||
self.dayOfWeekSeriesList = data.dayOfWeekSeriesList
|
self.dayOfWeekSeriesList = data.dayOfWeekSeriesList
|
||||||
|
|||||||
Reference in New Issue
Block a user