feat: 메인 라이브

- 지금 라이브 중 UI 적용
This commit is contained in:
Yu Sung
2025-07-22 01:46:04 +09:00
parent 7518ac7957
commit 9f39f24da8
3 changed files with 103 additions and 112 deletions

View File

@@ -121,19 +121,19 @@ struct LiveView: View {
.onAppear {
viewModel.getSummary()
}
if !appState.isShowPlayer && role == MemberRole.CREATOR.rawValue {
Image("btn_make_live")
.padding(.trailing, 16)
.padding(.bottom, 16)
.onTapGesture {
if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
AppState.shared.setAppStep(step: .createLive(timeSettingMode: .NOW, onSuccess: onCreateSuccess))
} else {
AppState.shared.setAppStep(step: .login)
}
}
if !appState.isShowPlayer && role == MemberRole.CREATOR.rawValue {
Image("btn_make_live")
.padding(.trailing, 16)
.padding(.bottom, 16)
.onTapGesture {
if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
AppState.shared.setAppStep(step: .createLive(timeSettingMode: .NOW, onSuccess: onCreateSuccess))
} else {
AppState.shared.setAppStep(step: .login)
}
}
}
}
}