mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-25 12:02:13 +00:00
remove touchdown animation
This commit is contained in:
@@ -234,14 +234,11 @@ struct ListRow: ViewModifier {
|
||||
} catch { }
|
||||
}
|
||||
case .ended:
|
||||
task?.cancel()
|
||||
if hitTest(gesture.location(in: self), with: nil) == self {
|
||||
representer?.touchDown = true
|
||||
withAnimation(.easeIn(duration: 0.05)) { representer?.touchDown = false }
|
||||
representer?.action()
|
||||
} else {
|
||||
representer?.touchDown = false
|
||||
}
|
||||
task?.cancel()
|
||||
representer?.touchDown = false
|
||||
case .changed:
|
||||
if let startLocation {
|
||||
let location = gesture.location(in: nil)
|
||||
|
||||
@@ -40,7 +40,6 @@ struct SheetRepresentable<Content: View>: UIViewControllerRepresentable {
|
||||
|
||||
func updateUIViewController(_ sheetController: Controller<Content>, context: Context) {
|
||||
sheetController.animate(isPresented: isPresented)
|
||||
sheetController.hostingController.rootView = content
|
||||
}
|
||||
|
||||
class Controller<C: View>: UIViewController {
|
||||
|
||||
Reference in New Issue
Block a user