LuKenneth
LuKenneth

Reputation: 2237

Xcode access attributes inside user defined runtime attributes

So I need to set the cornerRadius of my button to its own width squared. I know I can do this programmatically, but I need to do it in the storyboard (dev team standards).

So basically I need to do this:

bigCircle.layer.cornerRadius = bigCircle.bounds.size.width ^ 2

In here:

enter image description here

How do I do this?

Upvotes: 1

Views: 170

Answers (1)

William Anderson
William Anderson

Reputation: 287

I don't believe that's possible. A runtime attributes value must be a constant, not a variable / property.

Upvotes: 1

Related Questions