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
AHC051解法紹介
eijirou
0
540
サイトを作ったらNFCタグキーホルダーを爆速で作れ!
yuukis
0
310
React 使いじゃなくても知っておきたい教養としての React
oukayuka
18
5.7k
Dart 参戦!!静的型付き言語界の隠れた実力者
kno3a87
0
200
Portapad紹介プレゼンテーション
gotoumakakeru
1
130
decksh - a little language for decks
ajstarks
4
21k
GitHub Copilotの全体像と活用のヒント AI駆動開発の最初の一歩
74th
7
2.8k
202507_ADKで始めるエージェント開発の基本 〜デモを通じて紹介〜(奥田りさ)The Basics of Agent Development with ADK — A Demo-Focused Introduction
risatube
PRO
6
1.5k
A Gopher's Guide to Vibe Coding
danicat
0
140
生成AI、実際どう? - ニーリーの場合
nealle
0
110
WebAssemblyインタプリタを書く ~Component Modelを添えて~
ruccho
1
820
DynamoDBは怖くない!〜テーブル設計の勘所とテスト戦略〜
hyamazaki
1
200
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
1k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
810
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
Designing for Performance
lara
610
69k
Art, The Web, and Tiny UX
lynnandtonic
301
21k
Unsuck your backbone
ammeep
671
58k
The Pragmatic Product Professional
lauravandoore
36
6.8k
Statistics for Hackers
jakevdp
799
220k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
460
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
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