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
74
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
8
Other Decks in Programming
See All in Programming
Elm 0.19.0 Changes
bkuhlmann
0
510
Git Lint
bkuhlmann
4
760
TCAとKMPを用いた新規動画配信アプリ 「ABEMA Live」の設計
tomu28
2
130
見た目から始める生産性向上
ikumatadokoro
10
1.4k
Implementing Design Systems in Swift
seyfoyun
1
460
FigmaとPHPで作る1ミリたりとも表示崩れしない最強の帳票印刷ソリューション
ttskch
43
19k
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
440
スキーマ駆動開発による品質とスピードの両立 - 私達は何故、スキーマを書くのか
kentaroutakeda
0
180
Going beyond Apache Parquet's default settings
xhochy
0
130
PostmanでAPIの動作確認が楽になった話
h455h1
0
180
Amazon SQSコンシューマー疎結合への旅 - 出張! #DevelopersIO IT技術ブログの中の人が語る勉強会 #3
quiver
0
310
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
170
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
689
190k
A designer walks into a library…
pauljervisheath
201
23k
The Brand Is Dead. Long Live the Brand.
mthomps
49
29k
Art, The Web, and Tiny UX
lynnandtonic
290
19k
What the flash - Photography Introduction
edds
64
11k
Embracing the Ebb and Flow
colly
80
4.2k
How STYLIGHT went responsive
nonsquared
92
4.8k
Facilitating Awesome Meetings
lara
43
5.6k
Building a Modern Day E-commerce SEO Strategy
aleyda
21
6.4k
The Power of CSS Pseudo Elements
geoffreycrofte
62
5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
11
1k
The Invisible Side of Design
smashingmag
294
49k
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