Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WatchKit adding margin to Label

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

like image 218
Franlon Avatar asked Apr 08 '15 14:04

Franlon


2 Answers

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

like image 59
Javier Flores Font Avatar answered Nov 06 '22 02:11

Javier Flores Font


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

like image 1
Stephen Johnson Avatar answered Nov 06 '22 03:11

Stephen Johnson