Comments (11)
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 👍
from uiimageviewalignedswift.
@LinusGeffarth Just checked it out on iOS 11.1 and it seems to work just fine.
Take a look at the example I provided and compare it to your code.
from uiimageviewalignedswift.
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...
Thanks anyway!
from uiimageviewalignedswift.
I got it. Just released 0.5.1-beta
which resolves the issue, but may implement some new :)
To check it out change one of lines in your Podfile
to
pod 'UIImageViewAlignedSwift', '~> 0.5.1-beta'
and then run pod update --repo-update
.
from uiimageviewalignedswift.
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?
from uiimageviewalignedswift.
Cool, thanks for taking care of this. I am currently on 0.5.0 and am using CocoaPods
from uiimageviewalignedswift.
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.
from uiimageviewalignedswift.
Awesome! I have updated to the beta and it works for the test project. However, for mine, it doesn't. I'm still debugging.
My structure:
Nav
-> PageController
-> Nav
-> VC
-> TabBar
-> Nav
-> VC
-> VC over full screen, w/ image view
-> Popover that's to be dismissed
Maybe that helps...
Edit
I only experience it in one VC so it's probably some other issue. Geez. Ha!
from uiimageviewalignedswift.
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
You can replicate this behavior by using the system alerts with 0.5.0
Or by pushing some view with 0.5.1-beta
Trying to figure out how to fix it
Update
Well, still have no idea why, but it seems that on iOS 11 any changes on parent view controller causes the showing of image
and realImageView?.image
at the same time, so using the last fix from beta branch + re-assigning the image inside didMoveToWindow()
fixed it for me, but would be great if to test this more to be sure that there will be no more side-effects.
from uiimageviewalignedswift.
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...
from uiimageviewalignedswift.
Hi! I opened a PR to solve this issue
from uiimageviewalignedswift.
Related Issues (20)
- Swift 3 HOT 2
- Swift 2.3 HOT 2
- Pod -> 0.1 installs 0.3.1 HOT 2
- Seems not to work? HOT 5
- Images are not displayed on a device but are shown in storyboard HOT 4
- Interface builder designable fails to compile HOT 2
- required code signature missing
- Tag Carthage Updates HOT 1
- iOS 11 specific code question. HOT 2
- Image duplication in iOS 13b1 HOT 3
- Image duplication in iOS 13b3 [BUG] HOT 10
- Image duplication in iOS 13b5 [BUG] HOT 8
- Swift Package Manager Support
- The original unaligned image appear when presenting a UIAlertController, overlapping with the aligned image. HOT 5
- ImageAlign not working
- IOS 14 Issue - Image Background Color Issue
- Property alignTop HOT 3
- storyboard problem HOT 1
- Any example? HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uiimageviewalignedswift.