DEV Community

keepoSteepo
keepoSteepo

Posted on

1 2

Auto Layout, Constraints & Stack Views Overview

I was taking an in depth look at Auto Layout, constraints and stack views.

Auto Layout is a tool used to build adaptive user interfaces. With Auto Layout, you can set up rules or constraints to define how views will be laid out. Auto Layout should be used by developers when making applications to make their app responsive.
For example, to ensure the display is centered, horizontal and vertical constraints, best thought of as rules, should be set.

Stack views, keeps views arranged either vertically or horizontally. Once this is done, constraints can be set up on the stack view to make it centered. The proper use of these will facilitate the adaptability of your app, as far as how it is viewed, to every device.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more