feat(main): 콘텐츠 탭 타이틀바를 정리한다
This commit is contained in:
21
SodaLive/Resources/Assets.xcassets/v2/ic_bar_storage.imageset/Contents.json
vendored
Normal file
21
SodaLive/Resources/Assets.xcassets/v2/ic_bar_storage.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "ic_bar_storage.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
SodaLive/Resources/Assets.xcassets/v2/ic_bar_storage.imageset/ic_bar_storage.png
vendored
Normal file
BIN
SodaLive/Resources/Assets.xcassets/v2/ic_bar_storage.imageset/ic_bar_storage.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 361 B |
@@ -3,7 +3,7 @@ import SwiftUI
|
||||
struct MainContentView: View {
|
||||
let onTapCanCharge: () -> Void
|
||||
let onTapSearch: () -> Void
|
||||
let onTapNotificationList: () -> Void
|
||||
let onTapStorage: () -> Void
|
||||
let onTapContent: (Int) -> Void
|
||||
let onTapBanner: (AudioBannerResponse) -> Void
|
||||
let onTapSeries: (Int) -> Void
|
||||
@@ -14,7 +14,7 @@ struct MainContentView: View {
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 0) {
|
||||
HomeTitleBar {
|
||||
DefaultTitleBar(title: MainTab.content.title) {
|
||||
HStack(spacing: SodaSpacing.s14) {
|
||||
Image("ic_bar_cash")
|
||||
.onTapGesture { onTapCanCharge() }
|
||||
@@ -22,8 +22,8 @@ struct MainContentView: View {
|
||||
Image("ic_bar_search")
|
||||
.onTapGesture { onTapSearch() }
|
||||
|
||||
Image("ic_bar_bell")
|
||||
.onTapGesture { onTapNotificationList() }
|
||||
Image("ic_bar_storage")
|
||||
.onTapGesture { onTapStorage() }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ struct MainContentView_Previews: PreviewProvider {
|
||||
MainContentView(
|
||||
onTapCanCharge: {},
|
||||
onTapSearch: {},
|
||||
onTapNotificationList: {},
|
||||
onTapStorage: {},
|
||||
onTapContent: { _ in },
|
||||
onTapBanner: { _ in },
|
||||
onTapSeries: { _ in },
|
||||
|
||||
@@ -175,7 +175,7 @@ struct MainView: View {
|
||||
MainContentView(
|
||||
onTapCanCharge: handleHomeCanChargeTap,
|
||||
onTapSearch: handleHomeSearchTap,
|
||||
onTapNotificationList: handleHomeNotificationListTap,
|
||||
onTapStorage: handleContentStorageTap,
|
||||
onTapContent: handleRecommendationContentTap,
|
||||
onTapBanner: handleContentAudioBannerTap,
|
||||
onTapSeries: handleContentOriginalSeriesTap,
|
||||
@@ -583,6 +583,10 @@ struct MainView: View {
|
||||
}
|
||||
}
|
||||
|
||||
private func handleContentStorageTap() {
|
||||
AppState.shared.setAppStep(step: .myBox(currentTab: .orderlist))
|
||||
}
|
||||
|
||||
private func handleContentOriginalSeriesTap(seriesId: Int) {
|
||||
guard seriesId > 0 else { return }
|
||||
performRecommendationDetailAction {
|
||||
|
||||
Reference in New Issue
Block a user