라이브 방 - SwiftUI 기본 애니메이션 제거
This commit is contained in:
@@ -26,4 +26,8 @@ final class KeyboardHandler: ObservableObject {
|
||||
.subscribe(on: DispatchQueue.main)
|
||||
.assign(to: \.self.keyboardHeight, on: self)
|
||||
}
|
||||
|
||||
deinit {
|
||||
cancellable = nil
|
||||
}
|
||||
}
|
||||
|
@@ -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 = "" },
|
||||
|
Reference in New Issue
Block a user