Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mmsergi opened this issue Dec 10, 2019 · 4 comments
Open

Comments

@mmsergi
Copy link

mmsergi commented Dec 10, 2019

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.

@mmsergi mmsergi changed the title EPSignatureViewController opening in popup EPSignatureViewController opening in popup and not working in iOS 13 Dec 10, 2019
@dqb101140127
Copy link

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

@mmsergi
Copy link
Author

mmsergi commented Dec 18, 2019

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

this solution doesnt work for me in iOS 13.23

@kudeiro
Copy link

kudeiro commented Dec 18, 2019

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

@xarnthehero
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants