라이브 방 - SwiftUI 기본 애니메이션 제거

This commit is contained in:
Yu Sung 2023-08-21 05:12:29 +09:00
parent 0daf638b68
commit fe046e8006
2 changed files with 7 additions and 0 deletions

View File

@ -26,4 +26,8 @@ final class KeyboardHandler: ObservableObject {
.subscribe(on: DispatchQueue.main)
.assign(to: \.self.keyboardHeight, on: self)
}
deinit {
cancellable = nil
}
}

View File

@ -623,6 +623,9 @@ struct LiveRoomView: View {
}
.ignoresSafeArea(.keyboard)
.edgesIgnoringSafeArea(keyboardHandler.keyboardHeight > 0 ? .bottom : .init())
.transaction { transaction in
transaction.animation = nil
}
.sheet(
isPresented: $viewModel.isShowShareView,
onDismiss: { viewModel.shareMessage = "" },