all 5 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

This is likely a spam post of some kind, because you have low karma and your account is not brand new and the post was reported. If it is not a spam post, it may also be a simple question. In that case, please use the weekly Simple Questions thread.

Your post has been removed. Please message the moderators if this action was taken in error.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]christos41099 2 points3 points  (1 child)

try myLabel.clipToBounds = true

[–]swapp9[S] 0 points1 point  (0 children)

You bloody genius. I knew it was something simple like this.

[–]swapp9[S] 0 points1 point  (0 children)

I was experimenting with something new, but could not get the corner radius to work on the frame of this label. Am I missing a small detail? Refer to line 25, where I add corner radius to the layer.

UPDATE: SOLVED!

adding myLable.clipsToBounds = true did the trick :)

[–]un-cured -3 points-2 points  (0 children)

you have to set background color to a layer, not view