Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Adaptive Layout Workshop
Search
sammyd
February 20, 2015
Programming
0
350
Adaptive Layout Workshop
The slides which accompany the adaptive layout workshop presented at (amongst others) MobOS 2015.
sammyd
February 20, 2015
Tweet
Share
More Decks by sammyd
See All by sammyd
Core Image: Great when it works
sammyd
1
500
iOS Views & Animations: Learning by stealing
sammyd
1
170
Machine Learning on Mobile—a primer
sammyd
0
100
Core ML: A whistlestop tour
sammyd
1
160
DIY DI
sammyd
2
110
iOSConfSG 2017: Decoding Codable
sammyd
3
200
Machine Learning: deciphering the hype
sammyd
0
140
Notify Me, Notify You. Aha!
sammyd
1
170
SwiftConf 2016: Concurrency on iOS
sammyd
1
170
Other Decks in Programming
See All in Programming
為你自己學 Python - 冷知識篇
eddie
1
350
Kiroで始めるAI-DLC
kaonash
2
630
プロパティベーステストによるUIテスト: LLMによるプロパティ定義生成でエッジケースを捉える
tetta_pdnt
0
4.3k
知っているようで知らない"rails new"の世界 / The World of "rails new" You Think You Know but Don't
luccafort
PRO
1
190
テストコードはもう書かない:JetBrains AI Assistantに委ねる非同期処理のテスト自動設計・生成
makun
0
540
ファインディ株式会社におけるMCP活用とサービス開発
starfish719
0
2.1k
HTMLの品質ってなんだっけ? “HTMLクライテリア”の設計と実践
unachang113
4
2.9k
Namespace and Its Future
tagomoris
6
710
概念モデル→論理モデルで気をつけていること
sunnyone
3
300
Laravel Boost 超入門
fire_arlo
3
220
Amazon RDS 向けに提供されている MCP Server と仕組みを調べてみた/jawsug-okayama-2025-aurora-mcp
takahashiikki
1
120
rage against annotate_predecessor
junk0612
0
170
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
Why Our Code Smells
bkeepers
PRO
339
57k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Balancing Empowerment & Direction
lara
3
620
Navigating Team Friction
lara
189
15k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
Code Review Best Practice
trishagee
71
19k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
Designing for Performance
lara
610
69k
Transcript
Adaptive Layout Workshop Sam Davies @iwantmyrealname github.com/sammyd/adaptive-layout-workshop
Requirements • Xcode 6.1 • AdaptiveWeaponry sample project
Plan • AutoLayout refresher • Intro to size classes •
Installable constraints • Handling rotation in a post-rotation world • Adaptive fonts • Configurable constraints • Installable Views
Auto Layout Refresher
Adaptive Layout
In the beginning there was...
In the beginning there was...
In the beginning there was...
In the beginning there was...
In the beginning there was...
In the beginning there was...
In the beginning there was... ...a total of 10 different
layouts
in the past
this doesn't scale
introducing Adaptive Layout • Abstracts layout away from device specifics
• Introducing concept of size classes • Available in iOS 8 • Fully supported in Xcode and IB
"amount of space available for content"
Size classes
Size classes
Size classes
Approach to adaptive layout 1. Build base layout 2. Choose
size class override 3. Uninstall irrelevant constraints 4. Add new constraints specific to size class 5. Rinse and repeat
Let's Go!
Useful Links sam ⁶ @iwantmyrealname code ⁶ github.com/sammyd/adaptive-layout-workshop free book
⁶ shinobicontrols.com/ios8 competition ⁶ shinobicontrols.com/giveaway Thanks!