$30 off During Our Annual Pro Sale. View Details »
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
15
Other Decks in Programming
See All in Programming
AIエンジニアリングのご紹介 / Introduction to AI Engineering
rkaga
8
3k
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
150
大体よく分かるscala.collection.immutable.HashMap ~ Compressed Hash-Array Mapped Prefix-tree (CHAMP) ~
matsu_chara
2
220
Claude Codeの「Compacting Conversation」を体感50%減! CLAUDE.md + 8 Skills で挑むコンテキスト管理術
kmurahama
1
410
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
500
マスタデータ問題、マイクロサービスでどう解くか
kts
0
110
堅牢なフロントエンドテスト基盤を構築するために行った取り組み
shogo4131
8
2.4k
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
400
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
1.3k
Deno Tunnel を使ってみた話
kamekyame
0
150
エディターってAIで操作できるんだぜ
kis9a
0
740
FluorTracer / RayTracingCamp11
kugimasa
0
240
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
0
29k
Raft: Consensus for Rubyists
vanstee
141
7.2k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
120
Build your cross-platform service in a week with App Engine
jlugia
234
18k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Deep Space Network (abreviated)
tonyrice
0
16
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
47
33k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
16
Building Flexible Design Systems
yeseniaperezcruz
330
39k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
300
Typedesign – Prime Four
hannesfritz
42
2.9k
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