sochalewski / UIImageViewAlignedSwift

A UIImageView subclass which allows you to align the image left/right/top/bottom, even when contentMode is AspectFit. Swift now.
MIT License
236 stars 67 forks source link

Images are not displayed on a device but are shown in storyboard #15

Closed alusev closed 7 years ago

alusev commented 7 years ago

I set up an image with aspect fill, clip to bounds and align left = on. When I see it in storyboard everything looks fine but when run the project, images disappear.

alusev commented 7 years ago

I fixed it. It seems that the problem appears with an Xcode update. This is how it used to be and it stopped working.

captura de pantalla 2017-05-05 a la s 12 21 35

Fixed (now it works perfect):

captura de pantalla 2017-05-05 a la s 12 26 21
alusev commented 7 years ago

I was wrong, images now appear but they don't get aligned.

sochalewski commented 7 years ago

@alusev Thank you for paying attention. In fact there was an issue that caused image to stop appearing, because I've noticed too. Even if module was right. 0.4.1 fixes that, not sure about aligning (works for me ;)), so please check 0.4.1 out and let me know.

alusev commented 7 years ago

0.4.1 fixed the issue. Thanks!