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

The original unaligned image appear when presenting a UIAlertController, overlapping with the aligned image. #32

Open rickymohk opened 4 years ago

rickymohk commented 4 years ago

I have a UIImageViewAlignedSwift in a table cell. When I present a UIAlertController, the underlying image show up and overlapping with the aligned image. Device: iPhone 6s Plus iOS Version: 13.5.1

miajed commented 4 years ago

I have a similar problem... A little more complicated due to the complexity of my app, but when I return to a UIViewController with an UIImageViewAlignedSwift, it shows a previous image overlapping the new.

mvjpalsson commented 4 years ago

Same -- anyone been able to resolve this?

tagy commented 4 years ago

Same issue here.

This PR fixed it for me from a quick test:

https://github.com/sochalewski/UIImageViewAlignedSwift/pull/29

RCaroff-Molotov commented 3 years ago

Just put super.image = nil in the setup method fixed it for me.

lobo87 commented 3 years ago

this issue is still present, @RCaroff-Molotov had a good proposal which fixed it for now, any updates on resolving that issue sooner or later?