-
Notifications
You must be signed in to change notification settings - Fork 66
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
Dismissing ViewControllers above causes UI bug #16
Comments
Looks like a bug. Thank you for your report, I'll investigate this within a few days. Could you please let me know which version do you use? |
Cool, thanks for taking care of this. I am currently on 0.5.0 and am using CocoaPods |
@LinusGeffarth Just checked it out on iOS 11.1 and it seems to work just fine. |
Hm, true. I figured when I set the image at some other point in my code, it does work w/o issues. It's probably about constraint refreshes I'm committing... |
I've found the issue. Whenever you present a view controller on the view controller with the image view inside, and then dismiss it, the bug occurs. Check out the zip. Make sure to run it on an iPad, I've only experienced the issue with popovers. |
I got it. Just released To check it out change one of lines in your |
Awesome! I have updated to the beta and it works for the test project. However, for mine, it doesn't. I'm still debugging.
Maybe that helps... Edit I only experience it in one VC so it's probably some other issue. Geez. Ha! |
Wow, it looks crazy :) I have no idea at this moment, but I'll try resolve this. Nevertheless feel free to post your solution or pull request when you got something 👍 |
I was able to reproduce the bug on the iOS11+ only and it seems that it's still there even in updated 0.5.1-beta. ImageView was added to storyboard with aspect Fit content mode and left alignment ON Update |
I used the latest beta branch but still had this issue. To reproduce it, I had to start the app, dismiss it (home button), bring it to foreground and then rotate the view. Maybe this helps someone debugging it... |
Hi! I opened a PR to solve this issue |
EDIT
It was not setting the image programmatically that causes the issue, but dismissing a UIViewController above the one with the image after presenting it as a popover i.e..
Below the original post.
I have set
UIImageViewAligned
as myUIImageView
's class in storyboard, enabled right alignment and provided an image:It works just like it should until I update the image programmatically like:
This results in the following UI:
Any idea why this happens & what I can do about it?
The text was updated successfully, but these errors were encountered: