#53 Fix image animation on closing preview
This commit is contained in:
parent
76e0e4cc5f
commit
a85f1f8b12
|
@ -156,6 +156,8 @@ struct ImageViewer: View {
|
|||
var tapGesture: some Gesture {
|
||||
TapGesture().onEnded({ _ in
|
||||
withAnimation {
|
||||
self.currentMagnification = 0
|
||||
self.finalMagnification = 1.0
|
||||
self.currentOffset = self.calculateStartingOffset()
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ public struct BaseComposeView: View {
|
|||
|
||||
@StateObject private var textModel: TextModel
|
||||
|
||||
@State private var isKeyboardPresented = false
|
||||
@State private var isKeyboardPresented = true
|
||||
@State private var isSensitive = false
|
||||
@State private var spoilerText = ""
|
||||
@State private var commentsDisabled = false
|
||||
|
|
Loading…
Reference in New Issue