feat(main): 콘텐츠 탭 타이틀바를 정리한다

This commit is contained in:
Yu Sung
2026-07-08 03:45:32 +09:00
parent c0369e6f58
commit 403eee262f
8 changed files with 58 additions and 7 deletions

View 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
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

View File

@@ -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 },

View File

@@ -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 {