Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
UICollectionView + UIKit Dynamics
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Heberti Almeida
October 30, 2014
Programming
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
UICollectionView + UIKit Dynamics
Heberti Almeida
October 30, 2014
Other Decks in Programming
See All in Programming
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
190
sbt 2.0: takeoff
eed3si9n
0
160
golang-bob.pdf
iwatsukayura
0
130
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
AWSに止められる覚悟してますか?
morizo_1984
2
530
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
phperだってパンチカードでコーディングしたい
o0h
PRO
0
330
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
Featured
See All Featured
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
310
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
560
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
Everyday Curiosity
cassininazir
0
350
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
Exploring anti-patterns in Rails
aemeredith
4
540
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
Designing for Performance
lara
612
70k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Transcript
UIKit Dynamics + UICollectionView Heberti Almeida iOS Developer & UI
Designer em Swift
Programando Swift
Estrutura UICollectionView
Múltiplos layouts https://github.com/hebertialmeida/HAPaperViewController
Exemplo UICollectionView
O que é UIKit Dynamics? • Adiciona um motor de
física ao UIKit; • Introduzido no iOS 7; • Simples de implementar; • Não foi criado especificamente para games.
Estrutura UIKit Dynamics
UIDynamicAnimator • É responsável pela execução das animações; • Ele
invalida o layout quando preciso; • Neste caso quando criado precisamos referenciar uma collectionViewLayout e não uma UIView;
UIDynamicBehavior • Define o comportamento dos itens; • O Animator
pode ter vários behaviors; • Gravidade, colisão, attached, push…
UIDynamicItem • Item onde serão aplicados os comportamentos; • É
um protocolo implementado por: 1. UIView; 2. UICollectionViewLayoutAttributes;
Behaviors possíveis • UIAttachmentBehavior; • UICollisionBehavior; • UIGravityBehavior; • UIPushBehavior;
• UISnapBehavior.
Exemplo UIDynamicBehavior
UIAttachmentBehavior • Ancora um item a um ponto ou a
outro item; • Length, frequency, damping; • Uso com gestos.
Exemplo UICollectionView + UIKit Dynamics
Quer aprender mais? • WWDC 2013 Session 206 • WWDC
2013 Session 221 • WWDC 2014 Session 232 • https://developer.apple.com/library/ios/samplecode/DynamicsCatalog/ Introduction/Intro.html • http://www.teehanlax.com/blog/introduction-to-uikit-dynamics/ • http://www.objc.io/issue-3/collection-view-layouts.html • http://www.objc.io/issue-5/collection-views-and-uidynamics.html
@hebertialmeida Obrigado!