V
V
Vladislav Resley2020-05-27 20:45:12
iOS
Vladislav Resley, 2020-05-27 20:45:12

If UIImageView has a cornerRadius, then when adding an image, it is superimposed without fixing the corners?

I create an ImageView and give it a cornerRadius, after which I assign a picture through the .image property, set Aspect Fill and it is installed in the view but without corners? What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
briahas, 2020-05-27
@Adam3465

Set UIImageView.layer property maskToBounds = true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question