ipraba / EPSignature

Signature component for iOS in Swift
MIT License
797 stars 206 forks source link

EPSignatureViewController opening in popup and not working in iOS 13 #75

Open mmsergi opened 4 years ago

mmsergi commented 4 years ago

In old versions of iOS EPSignature is working properly but in iOS 13.2 the view controller appears like a popup and you can't draw anything because the finger movement closes the view.

dqb101140127 commented 4 years ago

你可以修改modalPresentationStyle为fullScreen 就可以了

mmsergi commented 4 years ago

你可以修改modalPresentationStyle为fullScreen 就可以了

this solution doesnt work for me in iOS 13.23

kudeiro commented 4 years ago

Use this (fullscreen on navigation controller instead of signature view) let nav = UINavigationController(rootViewController: signatureVC) nav.modalPresentationStyle = .fullScreen

xarnthehero commented 4 years ago

If you want to stay on the .formSheet size, you can prevent the pan gesture recognizer inside EPSignatureView.

extension EPSignatureView {
    override open func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
        return !(gestureRecognizer is UIPanGestureRecognizer)
    }
}