diff --git a/SodaLive/Sources/Keyboard/KeyboardHandler.swift b/SodaLive/Sources/Keyboard/KeyboardHandler.swift index f350acf..1f889aa 100644 --- a/SodaLive/Sources/Keyboard/KeyboardHandler.swift +++ b/SodaLive/Sources/Keyboard/KeyboardHandler.swift @@ -26,4 +26,8 @@ final class KeyboardHandler: ObservableObject { .subscribe(on: DispatchQueue.main) .assign(to: \.self.keyboardHeight, on: self) } + + deinit { + cancellable = nil + } } diff --git a/SodaLive/Sources/Live/Room/LiveRoomView.swift b/SodaLive/Sources/Live/Room/LiveRoomView.swift index d10fbf2..e89b89a 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomView.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomView.swift @@ -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 = "" },