-
Notifications
You must be signed in to change notification settings - Fork 368
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
Added new property - useful when is added to a view controller that… #149
Conversation
…s presented modally on iOS 13 where the default presentation style supports a dismiss gesture.
Thank you very much! Excellent work. I've released your changes in version |
Oh dear - I seem to have missed something somewhere. Once I updated to It seems that
But this (the implementation used in recent commit) does not:
I'm not sure why it would work in a subclass, but not in the |
Hmm, that's good to know. I've made a demo and it seems to work for me (tried both with simple file installation and CocoaPods): Let me know if the demo works for you. Maybe there is something else that is causing the issue? By the way, in your code example above, I noticed that you wrote open override func gestureRecognizerShouldBegin... I can see that we use |
Thanks for the demo, I can confirm that it works for me so now I'm going through my own project to see what differs. As for the snippet, the second piece of code is just a quick log statement I used to see if the delegate function is even called. Using the Perhaps something to do with the fact I am adding it programmatically vs using a storyboard. Hopefully I will have some more information soon. The good news at least is that the commit added in 20.0.1 is fit for purpose. |
That's possible. I think we can test this by modifying my demo and creating cosmos view programmatically. |
Yep. I’ll also try to test inside a scroll view and inside a navigation
controller etc.
|
I'm sorry for the confusion - this morning with a clear head I went back to basics and cleaned all my build folders and derived data and now everything is working well. Thanks for helping me figure it out and for merging the PR, which seems to work well in my project! |
No worries, I'm glad that it's working for you now. The caching of stuff in Xcode can be frustrating. |
Fix for #148