mm24
mm24

Reputation: 9606

Interface builder constraints for Apple Watch: different layout even if settings is Any screen size

I have set my constraints in Xcode interface builder as following:

enter image description here

But the layout is not the same as the one I have on my interface builder (see below). I cannot see/find any property on the watch UI elements and views that allows me to set the layout constraints.

enter image description here

As you can see the grey button on the row is misaligned on the 42 mm watch. It works well on the 38mm watch.

Anyone knows how to fix this?

Upvotes: 2

Views: 1296

Answers (1)

zisoft
zisoft

Reputation: 23078

There are no constraints on the Apple Watch. The interface can be layed out by groups with different behaviours.

So put your button in a group with horizontal layout and the desired width. Then put the button in that group and set the button's horizontal position to right.

Upvotes: 3

Related Questions