Setting Corner Radius on UIImageView not working

前端 未结 11 1899
心在旅途
心在旅途 2020-12-22 16:15

I\'m at a bit of a loss. I\'ve used the layer property of UIView to round the corners of multiple elements in my app. However, this one UIImageView is simply not complying.

11条回答
  •  情话喂你
    2020-12-22 17:16

    For imageView.contentMode = .scaleAspectFill the cornerRadius is not applied if the image is very large, depending on the hardware.

    Some tests with resized panorama images:

    • iPhone X, image size 5000x1107:

提交回复
热议问题