메인
- 오디션 탭 추가
This commit is contained in:
		| @@ -9,7 +9,7 @@ | ||||
|       "scale" : "2x" | ||||
|     }, | ||||
|     { | ||||
|       "filename" : "ic_tabbar_explorer_normal.png", | ||||
|       "filename" : "ic_tabbar_audition_normal.png", | ||||
|       "idiom" : "universal", | ||||
|       "scale" : "3x" | ||||
|     } | ||||
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.7 KiB | 
| @@ -9,7 +9,7 @@ | ||||
|       "scale" : "2x" | ||||
|     }, | ||||
|     { | ||||
|       "filename" : "ic_tabbar_explorer_selected.png", | ||||
|       "filename" : "ic_tabbar_audition_selected.png", | ||||
|       "idiom" : "universal", | ||||
|       "scale" : "3x" | ||||
|     } | ||||
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.8 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 1.5 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 1.6 KiB | 
							
								
								
									
										18
									
								
								SodaLive/Sources/Audition/AuditionView.swift
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								SodaLive/Sources/Audition/AuditionView.swift
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| // | ||||
| //  AuditionView.swift | ||||
| //  SodaLive | ||||
| // | ||||
| //  Created by klaus on 1/5/25. | ||||
| // | ||||
|  | ||||
| import SwiftUI | ||||
|  | ||||
| struct AuditionView: View { | ||||
|     var body: some View { | ||||
|         Text("오디션") | ||||
|     } | ||||
| } | ||||
|  | ||||
| #Preview { | ||||
|     AuditionView() | ||||
| } | ||||
| @@ -34,8 +34,8 @@ struct BottomTabView: View { | ||||
|                 }, | ||||
|                 color: { | ||||
|                     currentTab == .content ? | ||||
|                     Color(hex: "3bb9f1") : | ||||
|                     Color(hex: "bbbbbb") | ||||
|                     Color.button : | ||||
|                     Color.graybb | ||||
|                 }, | ||||
|                 width: tabWidth | ||||
|             ) | ||||
| @@ -59,33 +59,33 @@ struct BottomTabView: View { | ||||
|                 }, | ||||
|                 color: { | ||||
|                     currentTab == .live ? | ||||
|                     Color(hex: "3bb9f1") : | ||||
|                     Color(hex: "bbbbbb") | ||||
|                     Color.button : | ||||
|                     Color.graybb | ||||
|                 }, | ||||
|                 width: tabWidth | ||||
|             ) | ||||
|              | ||||
|             TabButton( | ||||
|                 title: "탐색", | ||||
|                 title: "오디션", | ||||
|                 action: { | ||||
|                     if currentTab != .explorer { | ||||
|                         currentTab = .explorer | ||||
|                     if currentTab != .audition { | ||||
|                         currentTab = .audition | ||||
|                     } | ||||
|                 }, | ||||
|                 image: { | ||||
|                     currentTab == .explorer ? | ||||
|                     "ic_tabbar_explorer_selected" : | ||||
|                     "ic_tabbar_explorer_normal" | ||||
|                     currentTab == .audition ? | ||||
|                     "ic_tabbar_audition_selected" : | ||||
|                     "ic_tabbar_audition_normal" | ||||
|                 }, | ||||
|                 fontName: { | ||||
|                     currentTab == .explorer ? | ||||
|                     currentTab == .audition ? | ||||
|                     Font.bold.rawValue : | ||||
|                     Font.medium.rawValue | ||||
|                 }, | ||||
|                 color: { | ||||
|                     currentTab == .explorer ? | ||||
|                     Color(hex: "3bb9f1") : | ||||
|                     Color(hex: "bbbbbb") | ||||
|                     currentTab == .audition ? | ||||
|                     Color.button : | ||||
|                     Color.graybb | ||||
|                 }, | ||||
|                 width: tabWidth | ||||
|             ) | ||||
| @@ -109,8 +109,8 @@ struct BottomTabView: View { | ||||
|                 }, | ||||
|                 color: { | ||||
|                     currentTab == .message ? | ||||
|                     Color(hex: "3bb9f1") : | ||||
|                     Color(hex: "bbbbbb") | ||||
|                     Color.button : | ||||
|                     Color.graybb | ||||
|                 }, | ||||
|                 width: tabWidth | ||||
|             ) | ||||
| @@ -134,13 +134,13 @@ struct BottomTabView: View { | ||||
|                 }, | ||||
|                 color: { | ||||
|                     currentTab == .mypage ? | ||||
|                     Color(hex: "3bb9f1") : | ||||
|                     Color(hex: "bbbbbb") | ||||
|                     Color.button : | ||||
|                     Color.graybb | ||||
|                 }, | ||||
|                 width: tabWidth | ||||
|             ) | ||||
|         } | ||||
|         .background(Color(hex: "111111")) | ||||
|         .background(Color.gray11) | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -21,7 +21,7 @@ struct HomeView: View { | ||||
|     @StateObject var contentPlayerPlayManager = ContentPlayerPlayManager.shared | ||||
|      | ||||
|     private let liveView = LiveView() | ||||
|     private let explorer = ExplorerView() | ||||
|     private let audition = AuditionView() | ||||
|     private let messageView = MessageView() | ||||
|     private let contentView = ContentMainView() | ||||
|      | ||||
| @@ -40,9 +40,9 @@ struct HomeView: View { | ||||
|                             .frame(width: viewModel.currentTab == .live ? proxy.size.width : 0) | ||||
|                             .opacity(viewModel.currentTab == .live ? 1.0 : 0.01) | ||||
|                          | ||||
|                         explorer | ||||
|                             .frame(width: viewModel.currentTab == .explorer ? proxy.size.width : 0) | ||||
|                             .opacity(viewModel.currentTab == .explorer ? 1.0 : 0.01) | ||||
|                         audition | ||||
|                             .frame(width: viewModel.currentTab == .audition ? proxy.size.width : 0) | ||||
|                             .opacity(viewModel.currentTab == .audition ? 1.0 : 0.01) | ||||
|                          | ||||
|                         messageView | ||||
|                             .frame(width: viewModel.currentTab == .message ? proxy.size.width : 0) | ||||
|   | ||||
| @@ -21,7 +21,7 @@ final class HomeViewModel: ObservableObject { | ||||
|     private let playbackTrackingRepository = PlaybackTrackingRepository() | ||||
|      | ||||
|     enum CurrentTab: String { | ||||
|         case content, live, explorer, message, mypage | ||||
|         case content, live, audition, message, mypage | ||||
|     } | ||||
|      | ||||
|     @Published var currentTab: CurrentTab = .content | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung