feat: 하단 탭 아이콘 변경
This commit is contained in:
@@ -18,7 +18,6 @@ struct HomeView: View {
|
||||
@StateObject var contentPlayerPlayManager = ContentPlayerPlayManager.shared
|
||||
|
||||
private let liveView = LiveView()
|
||||
private let audition = AuditionView()
|
||||
private let contentView = ContentMainTabHomeView()
|
||||
|
||||
@State private var isShowPlayer = false
|
||||
@@ -30,17 +29,13 @@ struct HomeView: View {
|
||||
VStack(spacing: 0) {
|
||||
ZStack {
|
||||
contentView
|
||||
.frame(width: viewModel.currentTab == .content ? proxy.size.width : 0)
|
||||
.opacity(viewModel.currentTab == .content ? 1.0 : 0.01)
|
||||
.frame(width: viewModel.currentTab == .home ? proxy.size.width : 0)
|
||||
.opacity(viewModel.currentTab == .home ? 1.0 : 0.01)
|
||||
|
||||
liveView
|
||||
.frame(width: viewModel.currentTab == .live ? proxy.size.width : 0)
|
||||
.opacity(viewModel.currentTab == .live ? 1.0 : 0.01)
|
||||
|
||||
audition
|
||||
.frame(width: viewModel.currentTab == .audition ? proxy.size.width : 0)
|
||||
.opacity(viewModel.currentTab == .audition ? 1.0 : 0.01)
|
||||
|
||||
if viewModel.currentTab == .mypage {
|
||||
MyPageView()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user