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
iOS Animations with Auto Layout
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Realm
October 05, 2015
Programming
1
32k
iOS Animations with Auto Layout
Presented by Marin Todorov at GOTO Copenhagen 2015
Realm
October 05, 2015
Tweet
Share
More Decks by Realm
See All by Realm
WWDC 2017 Review
realm
0
2.1k
Xcode shortcuts
realm
0
4.7k
Self Branding with GitHub
realm
0
4.3k
Realm Mobile Platform overview and demo
realm
0
2.1k
Realm advanced topics and demo
realm
0
2k
Realm introduction Seoul meetup 10
realm
0
2.2k
Stuart Hall: How I got 2.3 Million App Downloads
realm
0
1.9k
James Majors: What the Swiftly Func?
realm
1
4.3k
Simina Pasat: Continuous everything for iOS apps
realm
0
650
Other Decks in Programming
See All in Programming
CSC307 Lecture 04
javiergs
PRO
0
660
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
170
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
550
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
960
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
110
Basic Architectures
denyspoltorak
0
670
CSC307 Lecture 03
javiergs
PRO
1
490
Fluid Templating in TYPO3 14
s2b
0
130
SourceGeneratorのススメ
htkym
0
190
Architectural Extensions
denyspoltorak
0
280
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Thoughts on Productivity
jonyablonski
74
5k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
180
Believing is Seeing
oripsolob
1
54
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Why Our Code Smells
bkeepers
PRO
340
58k
Skip the Path - Find Your Career Trail
mkilby
0
54
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
730
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
710
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
64
Making Projects Easy
brettharned
120
6.6k
Transcript
Animations with AL (and stack views) Marin Todorov
None
Swift 2.0 Swift 2.0
None
UIView.animateWithDuration(1.0, animations: { redSquare.center.x = 200.0 })
Stack Overflow Q: How to do this one animation thing
in my app? A: Include Bloated.framework by Super Awesome Ninja Dev and paste: createANM().move().byX(20).byY(10).fadeWithTint().etc().etc() Q: Accepted! Works!
None
Demo…
AutoLayout UIView1 UIView2 Constraint Width Constraint Height Constraint CenterX Constraint
MarginY Constraint Ratio Constraint Height Constraint Vert. Space Layout Hierarchy UIView1.center UIView1.bounds UIView2.center UIView2.bounds UIView1.height = UIView2.height * 0.5 + 100
AutoLayout VC pushed VC popped orientation change keyboard pops up
change constraint AutoLayout AutoLayout AutoLayout Internal & External changes loadView()
UIView.animateWithDuration(1.0, animations: { }) view.center.x += 10 view.center.x -= 10
AutoLayout UIView1 UIView2 Constraint Width Constraint Height Constraint CenterX Constraint
MarginY Constraint Ratio Constraint Height Constraint Vert. Space Layout Hierarchy UIView1.center UIView1.bounds UIView2.center UIView2.bounds UIView1.height = UIView2.height * 0.5 + 100
UIView.animateWithDuration(1.0, animations: { }) … code to change constraints… layoutIfNeeded()
Demo…
UIStackView Button Constraint Width Constraint Height Constraint CenterX Constraint MarginY
Constraint Ratio Constraint Height Constraint Vert. Space AutoLayout Text horizontal/vertical centered margin space consult prev. slides
Demo…
Marin Todorov Thank you! www.underplot.com
None