https://github.com/appcoda/uistackview-demo
A Simple Demo for UIStackView
https://github.com/appcoda/uistackview-demo
Last synced: 8 months ago
JSON representation
A Simple Demo for UIStackView
- Host: GitHub
- URL: https://github.com/appcoda/uistackview-demo
- Owner: appcoda
- Created: 2015-08-03T15:08:58.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-03T15:18:35.000Z (over 10 years ago)
- Last Synced: 2025-03-27T05:26:05.836Z (9 months ago)
- Language: Swift
- Homepage: http://www.appcoda.com/stack-views-intro/
- Size: 1.11 MB
- Stars: 37
- Watchers: 6
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#A Simple Demo for UIStackView
UIStackView is first introduced in iOS 9. The stack view provides a streamlined interface for laying out a collection of views in either a column or a row. For views embedded in a stack view, you no longer need to define auto layout constraints. The stack view manages the layout of its subviews and automatically applies layout constrants for you. That means, the subviews are ready to adapt to different screen sizes. Furthermore, you can embed a stack view in another stack view to build more complex user interfaces. Don’t get me wrong. It doesn’t mean you do not need to deal with auto layout. You still need to define the layout constrants for the stack view. It just saves you time from creating constraints for every UI element and makes it super easy to add/remove views from the layout.
To learn more about UIStackView, you can refer to this tutorial:
http://www.appcoda.com/stack-views-intro/