SlideShare a Scribd company logo
1 of 16
Download to read offline
Understanding Stack Views
iOS Development
Topics
● History
● Stack Views
● Comparison
● Properties
○ Alignment
○ Distribution
○ Spacing
● Some points
History
With WWDC 2015, and iOS 9, Apple introduced a special type of view called
Stack View.
Stack Views are...
Auto Layout without Constraints
https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/AutoLayoutWithoutConstraints.html
Stack Views
Constraints
Constraints
Comparison
Alignment
Alignment
Distribution
Spacing
Some points
● It is not a visual element;
● Stack view only manage the layout of its content, so you are responsible to
define the position and (optionally) the size of the stack;
● You can nest stack views;
Nested Stack Views
Thank you!
Henrique Morbin
henrique.morbin@ilegra.com
github.com/Morbix

More Related Content

Similar to Understanding stack views

synebo talk #1 Salesforce lightning
synebo talk #1 Salesforce lightningsynebo talk #1 Salesforce lightning
synebo talk #1 Salesforce lightningAnna Kryvulya
 
Creating Large Scale Software Platforms with OSGi and an Extension Point Mode...
Creating Large Scale Software Platforms with OSGi and an Extension Point Mode...Creating Large Scale Software Platforms with OSGi and an Extension Point Mode...
Creating Large Scale Software Platforms with OSGi and an Extension Point Mode...Nuxeo
 
I pad uicatalog_lesson02
I pad uicatalog_lesson02I pad uicatalog_lesson02
I pad uicatalog_lesson02Rich Helton
 
Proteus - android layout engine
Proteus - android layout engineProteus - android layout engine
Proteus - android layout engineKiran Kumar
 
YUI App Framework
YUI App FrameworkYUI App Framework
YUI App FrameworkelHornair
 
Architecture pitfalls in android development
Architecture pitfalls in android developmentArchitecture pitfalls in android development
Architecture pitfalls in android developmentThomas Krueger
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven DesignKnoldus Inc.
 
Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1Manoj Ellappan
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring FrameworkHùng Nguyễn Huy
 
Introducing the JAQ (Java, Angular, Sql/NoSQL) Stack
Introducing the JAQ (Java, Angular, Sql/NoSQL) Stack Introducing the JAQ (Java, Angular, Sql/NoSQL) Stack
Introducing the JAQ (Java, Angular, Sql/NoSQL) Stack Suren Konathala
 
Building modular enterprise scale angular js applications
Building modular enterprise scale angular js applicationsBuilding modular enterprise scale angular js applications
Building modular enterprise scale angular js applicationsJonathan Fontanez
 
Beyond responsive design - UI for the modern web application
Beyond responsive design - UI for the modern web applicationBeyond responsive design - UI for the modern web application
Beyond responsive design - UI for the modern web applicationPete Smith
 
Introduction to spring
Introduction to springIntroduction to spring
Introduction to springodedns
 
Enhancing SharePoint 2010 for the iPad (SPSAusTX 2012)
Enhancing SharePoint 2010 for the iPad (SPSAusTX 2012)Enhancing SharePoint 2010 for the iPad (SPSAusTX 2012)
Enhancing SharePoint 2010 for the iPad (SPSAusTX 2012)Michael Greene
 
Beyond responsive design - UI for the modern web application - Pete Smith - C...
Beyond responsive design - UI for the modern web application - Pete Smith - C...Beyond responsive design - UI for the modern web application - Pete Smith - C...
Beyond responsive design - UI for the modern web application - Pete Smith - C...Codemotion
 
Session 16 - Designing universal interface which used for iPad and iPhone
Session 16  -  Designing universal interface which used for iPad and iPhoneSession 16  -  Designing universal interface which used for iPad and iPhone
Session 16 - Designing universal interface which used for iPad and iPhoneVu Tran Lam
 

Similar to Understanding stack views (20)

synebo talk #1 Salesforce lightning
synebo talk #1 Salesforce lightningsynebo talk #1 Salesforce lightning
synebo talk #1 Salesforce lightning
 
Creating Large Scale Software Platforms with OSGi and an Extension Point Mode...
Creating Large Scale Software Platforms with OSGi and an Extension Point Mode...Creating Large Scale Software Platforms with OSGi and an Extension Point Mode...
Creating Large Scale Software Platforms with OSGi and an Extension Point Mode...
 
I pad uicatalog_lesson02
I pad uicatalog_lesson02I pad uicatalog_lesson02
I pad uicatalog_lesson02
 
Chapter 1-Note.docx
Chapter 1-Note.docxChapter 1-Note.docx
Chapter 1-Note.docx
 
Proteus - android layout engine
Proteus - android layout engineProteus - android layout engine
Proteus - android layout engine
 
YUI App Framework
YUI App FrameworkYUI App Framework
YUI App Framework
 
Architecture pitfalls in android development
Architecture pitfalls in android developmentArchitecture pitfalls in android development
Architecture pitfalls in android development
 
Demo on JavaFX
Demo on JavaFXDemo on JavaFX
Demo on JavaFX
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven Design
 
Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1Basic iOS Training with SWIFT - Part 1
Basic iOS Training with SWIFT - Part 1
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Introducing the JAQ (Java, Angular, Sql/NoSQL) Stack
Introducing the JAQ (Java, Angular, Sql/NoSQL) Stack Introducing the JAQ (Java, Angular, Sql/NoSQL) Stack
Introducing the JAQ (Java, Angular, Sql/NoSQL) Stack
 
Building modular enterprise scale angular js applications
Building modular enterprise scale angular js applicationsBuilding modular enterprise scale angular js applications
Building modular enterprise scale angular js applications
 
Beyond responsive design - UI for the modern web application
Beyond responsive design - UI for the modern web applicationBeyond responsive design - UI for the modern web application
Beyond responsive design - UI for the modern web application
 
Introduction to spring
Introduction to springIntroduction to spring
Introduction to spring
 
Enhancing SharePoint 2010 for the iPad (SPSAusTX 2012)
Enhancing SharePoint 2010 for the iPad (SPSAusTX 2012)Enhancing SharePoint 2010 for the iPad (SPSAusTX 2012)
Enhancing SharePoint 2010 for the iPad (SPSAusTX 2012)
 
Beyond responsive design - UI for the modern web application - Pete Smith - C...
Beyond responsive design - UI for the modern web application - Pete Smith - C...Beyond responsive design - UI for the modern web application - Pete Smith - C...
Beyond responsive design - UI for the modern web application - Pete Smith - C...
 
THE FUTURE OF ANGULAR JS
THE FUTURE OF ANGULAR JSTHE FUTURE OF ANGULAR JS
THE FUTURE OF ANGULAR JS
 
Core Data
Core DataCore Data
Core Data
 
Session 16 - Designing universal interface which used for iPad and iPhone
Session 16  -  Designing universal interface which used for iPad and iPhoneSession 16  -  Designing universal interface which used for iPad and iPhone
Session 16 - Designing universal interface which used for iPad and iPhone
 

More from Henrique Morbin

Contratos Fortes com Programação Funcional
Contratos Fortes com Programação FuncionalContratos Fortes com Programação Funcional
Contratos Fortes com Programação FuncionalHenrique Morbin
 
Você já testou os seus testes?
Você já testou os seus testes?Você já testou os seus testes?
Você já testou os seus testes?Henrique Morbin
 
Understanding Auto Layout
Understanding Auto LayoutUnderstanding Auto Layout
Understanding Auto LayoutHenrique Morbin
 
7 perguntas para mudar a forma como você faz coaching
7 perguntas para mudar a forma como você faz coaching7 perguntas para mudar a forma como você faz coaching
7 perguntas para mudar a forma como você faz coachingHenrique Morbin
 
Tailor - Linter for Swift
Tailor - Linter for SwiftTailor - Linter for Swift
Tailor - Linter for SwiftHenrique Morbin
 
Hackathon Queen Mob - Tools and Helpers
Hackathon Queen Mob - Tools and HelpersHackathon Queen Mob - Tools and Helpers
Hackathon Queen Mob - Tools and HelpersHenrique Morbin
 
Parse - Backend As A Service
Parse - Backend As A ServiceParse - Backend As A Service
Parse - Backend As A ServiceHenrique Morbin
 
Introdução ao Swift por Henrique Morbin – iOS Developer
Introdução ao Swift por Henrique Morbin – iOS DeveloperIntrodução ao Swift por Henrique Morbin – iOS Developer
Introdução ao Swift por Henrique Morbin – iOS DeveloperHenrique Morbin
 

More from Henrique Morbin (11)

Swift Access Control
Swift Access ControlSwift Access Control
Swift Access Control
 
Contratos Fortes com Programação Funcional
Contratos Fortes com Programação FuncionalContratos Fortes com Programação Funcional
Contratos Fortes com Programação Funcional
 
Você já testou os seus testes?
Você já testou os seus testes?Você já testou os seus testes?
Você já testou os seus testes?
 
Understanding Auto Layout
Understanding Auto LayoutUnderstanding Auto Layout
Understanding Auto Layout
 
7 perguntas para mudar a forma como você faz coaching
7 perguntas para mudar a forma como você faz coaching7 perguntas para mudar a forma como você faz coaching
7 perguntas para mudar a forma como você faz coaching
 
Bond, swift bond
Bond, swift bondBond, swift bond
Bond, swift bond
 
Tailor - Linter for Swift
Tailor - Linter for SwiftTailor - Linter for Swift
Tailor - Linter for Swift
 
Hackathon Queen Mob - Tools and Helpers
Hackathon Queen Mob - Tools and HelpersHackathon Queen Mob - Tools and Helpers
Hackathon Queen Mob - Tools and Helpers
 
Parse - Backend As A Service
Parse - Backend As A ServiceParse - Backend As A Service
Parse - Backend As A Service
 
Cocoa Touch Framework 8
Cocoa Touch Framework 8Cocoa Touch Framework 8
Cocoa Touch Framework 8
 
Introdução ao Swift por Henrique Morbin – iOS Developer
Introdução ao Swift por Henrique Morbin – iOS DeveloperIntrodução ao Swift por Henrique Morbin – iOS Developer
Introdução ao Swift por Henrique Morbin – iOS Developer
 

Understanding stack views