라이브 방 - SwiftUI 기본 애니메이션 제거
This commit is contained in:
parent
0daf638b68
commit
fe046e8006
|
@ -26,4 +26,8 @@ final class KeyboardHandler: ObservableObject {
|
||||||
.subscribe(on: DispatchQueue.main)
|
.subscribe(on: DispatchQueue.main)
|
||||||
.assign(to: \.self.keyboardHeight, on: self)
|
.assign(to: \.self.keyboardHeight, on: self)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deinit {
|
||||||
|
cancellable = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -623,6 +623,9 @@ struct LiveRoomView: View {
|
||||||
}
|
}
|
||||||
.ignoresSafeArea(.keyboard)
|
.ignoresSafeArea(.keyboard)
|
||||||
.edgesIgnoringSafeArea(keyboardHandler.keyboardHeight > 0 ? .bottom : .init())
|
.edgesIgnoringSafeArea(keyboardHandler.keyboardHeight > 0 ? .bottom : .init())
|
||||||
|
.transaction { transaction in
|
||||||
|
transaction.animation = nil
|
||||||
|
}
|
||||||
.sheet(
|
.sheet(
|
||||||
isPresented: $viewModel.isShowShareView,
|
isPresented: $viewModel.isShowShareView,
|
||||||
onDismiss: { viewModel.shareMessage = "" },
|
onDismiss: { viewModel.shareMessage = "" },
|
||||||
|
|
Loading…
Reference in New Issue