WatchKit adding margin to Label

2.2k Views Asked by At

Is there a way to add a margin / padding to a WKInterfaceLabel in Watchkit? Using UIEdgeInsets doesn't work.

2

There are 2 best solutions below

1
On BEST ANSWER

You should create a WKInterfaceGroup and add the WKInterfaceLabel inside the group. You can manage the margin/padding using that group.

enter image description here

0
On

In your storyboard add your WKInterfaceLabel to a WKInterfaceGroup. Then in the properties for the group set the insets to custom. You can change the top, left, bottom, and right insets for the group.

enter image description here