Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WatchKit WKInterfaceGroup, one label on top of another?

Simple question: is it possible to stack one WKInterfaceLabel on top of another inside a WKInterfaceGroup? I’m dragging like a mad man and I cannot get the blue target line to setting above or below the first label. It’ll sit beside it, to its left or right, but it won’t settle above or below it.

I’m trying to do something inside a table row akin to a master/detail, but I simply can’t figure out if it’s possible.

like image 320
Luke Avatar asked Apr 13 '15 14:04

Luke


1 Answers

You can set the layout of the WKInterfaceGroup as Vertical and that will make your labels be one on top of the other.

enter image description here

This happens because WKInterfaceGroup doesn't work like a view, it has a layout flow that automatically arranges the inner WKInterface's as specified by the Layout property that can be horizontal or vertical. You can also tweak the appearance with custom insets.

like image 173
Nicolas S Avatar answered Nov 02 '22 23:11

Nicolas S