How to keep a round imageView round using auto layout?

后端 未结 15 1385
悲&欢浪女
悲&欢浪女 2020-12-01 06:22

How do I turn a rectangular image view into a circular image view that can hold shape in auto layout without setting width and height restraints? Thereby allowing the imageV

15条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 06:47

    Add a 1:1 aspect ratio constraint to the imageView for it to remain circular, despite any height or width changes.

提交回复
热议问题