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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Realm
October 05, 2015
Programming
32k
1
Share
iOS Animations with Auto Layout
Presented by Marin Todorov at GOTO Copenhagen 2015
Realm
October 05, 2015
More Decks by Realm
See All by Realm
WWDC 2017 Review
realm
0
2.2k
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
2k
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
Smarter Angular mit Transformers.js & Prompt API
christianliebel
PRO
1
120
PDI: Como Alavancar Sua Carreira e Seu Negócio
marcelgsantos
0
110
夢の無限スパゲッティ製造機 -実装篇- #phpstudy
o0h
PRO
0
200
ローカルで稼働するAI エージェントを超えて / beyond-local-ai-agents
gawa
2
260
PCOVから学ぶコードカバレッジ #phpcon_odawara
o0h
PRO
0
230
感情を設計する
ichimichi
5
1.3k
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
350
Migration to Signals, Signal Forms, Resource API, and NgRx Signal Store @Angular Days 03/2026 Munich
manfredsteyer
PRO
0
240
「効かない!」依存性注入(DI)を活用したAPI Platformのエラーハンドリング奮闘記
mkmk884
0
310
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
110
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.1k
飯MCP
yusukebe
0
490
Featured
See All Featured
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
53k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
270
AI: The stuff that nobody shows you
jnunemaker
PRO
5
530
The browser strikes back
jonoalderson
0
900
Building Adaptive Systems
keathley
44
3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
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