라이브 탭 새로고침 방법 변경 - 당겨서 새로고침 -> 지금 라이브 중 옆 새로고침 버튼으로 변경
This commit is contained in:
@@ -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()
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user