Circular Image Becoming a Diamond Not Circle - Swift 3

后端 未结 3 1399
天涯浪人
天涯浪人 2021-01-21 06:10

I have been trying to create a circular image but for some reason it has been outputting as a diamond. This is my code:

override func viewDidLoad() {
    display         


        
3条回答
  •  甜味超标
    2021-01-21 06:24

    Your problem it is probably caused by some constraints you have added to your imageView. Try adding only 4 constraints, 1 for fixed width, 1 for fixed height, 1 for leading space and 1 for top space as you can see at the screenshot below:


提交回复
热议问题