-
Notifications
You must be signed in to change notification settings - Fork 109
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
Broken on iOS 12 (center of alert is in bottom-right corner of device) #31
Comments
Thanks for the snippet, I am stuck trying to implement this but I have three errors with equal(width... Value of type 'UIButton?' has no member 'equal' Where this function comes from? Any help will be much welcome :) |
Hey Alejandro, might be a method that was not part of LBTAComponents, sorry. Here it is:
|
Implemented and working Kevin Thank you so much for your help Best Regards |
Thanks for providing the workaround! |
Thanks Philippe for the pod!
A quick heads-up, the alert is broken on iOS 12 beta.
Since I had to manually install the pod anyway to include all the nice PRs that people have pushed, here's how I replaced the constraints to fix the issue (only tested on iPhone X). Won't be pushing a PR because there is already a list of a few ones waiting, plus I am using a UIView convenience extension to create my anchors in a few lines.
In AlertOnboarding, after removing the constraints (keep those lines), here are the constraints to create:
For anyone using LBTAComponents's UIView extension, here's a ready-to-use snippet to replace AlertOnboarding' configureConstraints function:
The text was updated successfully, but these errors were encountered: