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
Introdução ao SwiftUI
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
BrunoDelgado
September 02, 2019
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introdução ao SwiftUI
Pequena apresentação para introduzir o SwiftUI para o time de iOS da Fast Shop.
BrunoDelgado
September 02, 2019
More Decks by BrunoDelgado
See All by BrunoDelgado
Modularizando aplicativos
brunodelgado
0
130
Compartilhando um framework interno usando CocoaPods
brunodelgado
1
18
Other Decks in Programming
See All in Programming
SREの越境 / SRE Collaboration
y0hgi
2
310
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
430
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
590
Web Framework Benchmark Battle 2026, Any%
a_matsuda
2
2k
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
The Rails Doctrine Decade
koic
2
590
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
Featured
See All Featured
How to make the Groovebox
asonas
2
2.5k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Practical Orchestrator
shlominoach
192
12k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
990
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Paper Plane
katiecoart
PRO
5
54k
The Curious Case for Waylosing
cassininazir
1
570
Mind Mapping
helmedeiros
1
400
Prompt Engineering for Job Search
mfonobong
0
520
Transcript
SwiftUI
Programação declarativa → React Native → Vue.js → Flutter
Apple
O que o SwiftUI? Um framework nativo para construir interfaces
de forma declarativa para qualquer plataforma da Apple. WWDC 2019
Better apps. Less code. → Escrever menos código (menos bugs)
→ Muitas animações prontas → Dynamic Type, Dark Mode, Localization e Accessibility → Multiplataforma: iOS, iPadOS, macOS, watchOS e tvOS
Novo projeto
View Tudo começa com um novo protocolo "View" Esse protocolo
só tem uma propriedade para ser retornada chamada "body".
Hello Fast Shop
Code #01
None
HStack e VStack Precisamos retornar sempre um objeto do tipo
"View" para a variável body. Como então retornar mais que um elemento?
Code #02
Simplicidade O código escrito em SwiftUI tende a ser simples,
declarativo e diminui muito a quantidade de código se comparando com o UIKit.
Code #03
None
List Um dos componentes mais utilizados do UIKit é a
UITableView. Vamos ver como utilizamos a "List” com o SwiftUI.
Code #04
None
Foi só uma introdução… → Property Wrappers (@State, @BindableObject…) →
Actions → Animations → Forms → Utilizar views do UIKit no SwiftUI → Utilizar views do SwiftUI no UIKit (UIHostingController) SwiftUI só roda a partir do iOS 13, watchOS 6 e macOS 10.15
Perguntas?
Obrigado! Bruno Delgado