clipping to bounds with UIViewContentModeScaleAspectFill
-
26-09-2019 - |
Question
is there any way of controlling where UIViewContentModeScaleAspectFill clips an image? In my case, images are always clipped around the center of the image. Is it possible to make it clip around the top?
Thanks!
Antonio
Solution
The current implementation of UIViewContentModeScaleAspectFill
is indeed to center the image as you pointed out, to my knowledge there's no way of altering this behavior.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow