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
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
2k
Realm advanced topics and demo
realm
0
2k
Realm introduction Seoul meetup 10
realm
0
2.1k
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
620
Other Decks in Programming
See All in Programming
RailsGirls IZUMO スポンサーLT
16bitidol
0
190
AI時代のソフトウェア開発を考える(2025/07版) / Agentic Software Engineering Findy 2025-07 Edition
twada
PRO
96
33k
AIともっと楽するE2Eテスト
myohei
7
2.9k
おやつのお供はお決まりですか?@WWDC25 Recap -Japan-\(region).swift
shingangan
0
140
生成AI時代のコンポーネントライブラリの作り方
touyou
1
250
AI駆動のマルチエージェントによる業務フロー自動化の設計と実践
h_okkah
0
190
Railsアプリケーションと パフォーマンスチューニング ー 秒間5万リクエストの モバイルオーダーシステムを支える事例 ー Rubyセミナー 大阪
falcon8823
5
1.4k
20250628_非エンジニアがバイブコーディングしてみた
ponponmikankan
0
710
PipeCDのプラグイン化で目指すところ
warashi
1
290
Android 16KBページサイズ対応をはじめからていねいに
mine2424
0
200
『自分のデータだけ見せたい!』を叶える──Laravel × Casbin で複雑権限をスッキリ解きほぐす 25 分
akitotsukahara
2
650
Modern Angular with Signals and Signal Store:New Rules for Your Architecture @enterJS Advanced Angular Day 2025
manfredsteyer
PRO
0
230
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Git: the NoSQL Database
bkeepers
PRO
430
65k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
Designing for humans not robots
tammielis
253
25k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Producing Creativity
orderedlist
PRO
346
40k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
The Cult of Friendly URLs
andyhume
79
6.5k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
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