라이브 탭 새로고침 방법 변경 - 당겨서 새로고침 -> 지금 라이브 중 옆 새로고침 버튼으로 변경

This commit is contained in:
Yu Sung
2023-12-22 03:34:38 +09:00
parent ceef432695
commit 15421ca4d5
6 changed files with 42 additions and 11 deletions

View File

@@ -19,12 +19,7 @@ struct LiveView: View {
GeometryReader { geo in
ZStack(alignment: .bottomTrailing) {
RefreshableScrollView(
refreshing: $viewModel.isRefresh,
action: {
viewModel.getSummary()
}
) {
ScrollView(.vertical, showsIndicators: false) {
LazyVStack(spacing: 40) {
if viewModel.recommendLiveItems.count > 0 {
SectionRecommendLiveView(items: viewModel.recommendLiveItems)
@@ -47,6 +42,9 @@ struct LiveView: View {
},
onTapCreateLive: {
AppState.shared.setAppStep(step: .createLive(timeSettingMode: .NOW, onSuccess: onCreateSuccess))
},
onClickRefresh: {
viewModel.refreshLiveNow()
}
)