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
1.9k
Xcode shortcuts
realm
0
4.6k
Self Branding with GitHub
realm
0
4.2k
Realm Mobile Platform overview and demo
realm
0
1.9k
Realm advanced topics and demo
realm
0
1.9k
Realm introduction Seoul meetup 10
realm
0
2k
Stuart Hall: How I got 2.3 Million App Downloads
realm
0
1.7k
James Majors: What the Swiftly Func?
realm
1
4.1k
Simina Pasat: Continuous everything for iOS apps
realm
0
560
Other Decks in Programming
See All in Programming
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.4k
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
820
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
380
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
4
970
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
230
From Spring Boot 2 to Spring Boot 3 with Java 21 and Jakarta EE
ivargrimstad
0
110
"config" ってなんだ? / What is "config"?
okashoi
0
240
Netty Chicago Java User Group 2024-04-17
sullis
0
180
VS Code をプロダクトにどう取り込むか
onomax
1
370
Random\Randomizer クラスで日常のあれこれを解決しよう! / Random\Randomizer class solves familiar trouble
cocoeyes02
0
250
try! Swift Tokyo 初参加報告LT
hinakko2
0
220
[技育CAMPアカデミア]アイディアを形に!【超入門】スマホアプリ開発〜リリースまでの流れをご紹介
teamlab
PRO
0
380
Featured
See All Featured
Side Projects
sachag
451
41k
Creatively Recalculating Your Daily Design Routine
revolveconf
210
11k
Large-scale JavaScript Application Architecture
addyosmani
504
110k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
659
120k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Making the Leap to Tech Lead
cromwellryan
124
8.5k
Happy Clients
brianwarren
92
6.4k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
6
1.5k
The Cost Of JavaScript in 2023
addyosmani
16
3.9k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
Git: the NoSQL Database
bkeepers
PRO
422
63k
Statistics for Hackers
jakevdp
789
220k
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