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
Introdução ao SwiftUI
Search
BrunoDelgado
September 02, 2019
Programming
0
110
Introdução ao SwiftUI
Pequena apresentação para introduzir o SwiftUI para o time de iOS da Fast Shop.
BrunoDelgado
September 02, 2019
Tweet
Share
More Decks by BrunoDelgado
See All by BrunoDelgado
Modularizando aplicativos
brunodelgado
0
110
Compartilhando um framework interno usando CocoaPods
brunodelgado
1
13
Other Decks in Programming
See All in Programming
VS Code Update for GitHub Copilot
74th
1
560
AIエージェントはこう育てる - GitHub Copilot Agentとチームの共進化サイクル
koboriakira
0
480
XP, Testing and ninja testing
m_seki
3
220
git worktree × Claude Code × MCP ~生成AI時代の並列開発フロー~
hisuzuya
1
520
datadog dash 2025 LLM observability for reliability and stability
ivry_presentationmaterials
0
420
既存デザインを変更せずにタップ領域を広げる方法
tahia910
1
260
Node-RED を(HTTP で)つなげる MCP サーバーを作ってみた
highu
0
120
Result型で“失敗”を型にするPHPコードの書き方
kajitack
4
560
#QiitaBash MCPのセキュリティ
ryosukedtomita
0
760
Team topologies and the microservice architecture: a synergistic relationship
cer
PRO
0
1.2k
Azure AI Foundryではじめてのマルチエージェントワークフロー
seosoft
0
150
AIプログラマーDevinは PHPerの夢を見るか?
shinyasaita
1
180
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
231
18k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
How to train your dragon (web standard)
notwaldorf
94
6.1k
Designing Experiences People Love
moore
142
24k
Automating Front-end Workflow
addyosmani
1370
200k
Making Projects Easy
brettharned
116
6.3k
Documentation Writing (for coders)
carmenintech
72
4.9k
Art, The Web, and Tiny UX
lynnandtonic
299
21k
Designing for humans not robots
tammielis
253
25k
A better future with KSS
kneath
239
17k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
800
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