-
Notifications
You must be signed in to change notification settings - Fork 703
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
Animation on Cancel whilst scanning #345
base: master
Are you sure you want to change the base?
Conversation
Made the Cancel animation softer and now depending on the iOS version. Moved the boolean logic to decide iOS version globally and used this for the decision. Also removed some duplications
Would you be able to rebase on master? That should fix the CI builds... |
// Calling with animated:true here will result in a blank screen when the scanner is closed on iOS 7. | ||
((UIViewController)viewController).DismissViewController(false, null); | ||
// Calling with animated:true here will result in a blank screen when the scanner is closed on iOS 7. | ||
((UIViewController)viewController).DismissViewController(is7orgreater, null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment conflicts with the code. On ios7 value is true - is it ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, should have changed the comment. On iOS7 value of is7orgreater should be false and I've just looked at my check in the Initialise method and it's wrong, should be:
is7orgreater = sv.Major > 7;
I shall rebase and make any changes needed tonight. |
Agreed please use (8,0) instead :) |
Made the Cancel animation softer and now depending on the iOS version.
Moved the boolean logic to decide iOS version globally and used this
for the decision. Also removed some duplications