From fe046e80069caaf5317f43dcc6b66f901642f4e0 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 21 Aug 2023 05:12:29 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EB=B0=A9=20-=20S?= =?UTF-8?q?wiftUI=20=EA=B8=B0=EB=B3=B8=20=EC=95=A0=EB=8B=88=EB=A9=94?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Keyboard/KeyboardHandler.swift | 4 ++++ SodaLive/Sources/Live/Room/LiveRoomView.swift | 3 +++ 2 files changed, 7 insertions(+) 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 = "" },