#53 Fix image animation on closing preview

This commit is contained in:
Marcin Czachurski 2023-04-21 17:14:24 +02:00
parent 76e0e4cc5f
commit a85f1f8b12
2 changed files with 3 additions and 1 deletions

View File

@ -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()
}

View File

@ -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