1

I am using a UILabel view and I have set the corner radius of it so as to make it rounded using runtime attributes. enter image description here

This is how it appears on iOS 16.x or below (any iOS 16 or below). enter image description here

and this is how it looks on iOS 17 Beta. enter image description here

The dot appears like a square. no idea how to fix this.

Tested on multiple devices and the square issue only appears on iOS 17 Beta.

HangarRash
  • 7,314
  • 5
  • 5
  • 32

1 Answers1

1

Put this after creating the corner radius:

label.layer.masksToBounds = true
josmd
  • 36
  • 3
  • 1
    Thank you matt for the negative vote. I was facing the same problem with a label used as a badge number and this solved the problem. There are other multiple uses of a label with background and cornerradius, not only for creating an empty circle. My answer is right, and the vote should adjusts to the correction of the issue and not being based in what's this programmer choosing to create the circle. – josmd Jul 30 '23 at 22:36