Building Arduino Projects for the Internet of Things

(Steven Felgate) #1
CHAPTER 7 ■ IOT PATTERNS: ON-DEMAND CLIENTS

While all three widgets are selected, click on the Stack ( ) button. This will stack
all selected widgets together in a vertical fashion, as shown in Figure  7-24.


To complete screen alignment, you need to add some constraints to the widgets so
that, even when they run on different devices, their behavior is consistent. As shown in
Figure  7-24 , make sure you have the Stack View selected in the View Controller. Drag the
Stack View into center of the screen so that the horizontal and vertical alignment guides
are visible, as shown in Figure  7-25.


Figure 7-24. Vertically stacked widgets

Free download pdf