Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
SwiftUI 豆知識 - よちよち Swift
Megabits_mzq
November 27, 2020
Programming
1
190
SwiftUI 豆知識 - よちよち Swift
2020/11/27 よちよち Swift 勉強会での発表スライドです。
Megabits_mzq
November 27, 2020
Tweet
Share
Other Decks in Programming
See All in Programming
jun0
3
640
o0h
PRO
1
1.5k
kubode
0
190
yumcyawiz
4
620
sullis
0
120
nbkouhou
0
850
line_developers_tw2
0
650
hr01
0
1.6k
kyoheig3
0
420
line_developers_tw
0
1.2k
horie1024
1
350
hr01
1
1.2k
Featured
See All Featured
jonrohan
1021
380k
tmm1
61
8.4k
zakiwarfel
88
3.3k
moore
125
21k
marcelosomers
220
15k
colly
66
3k
dougneiner
119
7.8k
bryan
30
3.3k
jacobian
255
20k
tanoku
258
24k
mojombo
358
62k
scottboms
251
11k
Transcript
Megabits @Megabits_mzq
Megabits @Megabits_mzq
None
@Megabits_mzq SwiftUI ⾖知識 SwiftUI 完全に理解した (ではない
struct MyAppsView_Previews: PreviewProvider { static var previews: some View {
MyAppsView() } }
None
import PlaygroundSupport struct MainView: View { var body: some View
{ ······ } } PlaygroundPage.current.setLiveView(MainView())
None
None
struct MyAppsView_Previews: PreviewProvider { static var previews: some View {
MyAppsView() } }
None
None
struct ContentView_Previews: PreviewProvider { static var previews: some View {
ContentView() .previewLayout(.sizeThatFits) } }
Circle().background(Color.yellow)
Circle().background(Color.yellow.brightness(0.5))
Circle().background(Color.yellow.brightness(0.5))
Circle().background(Color.yellow.saturation(0.3))
Circle().background(Color.yellow.saturation(0.3))
Circle().background(Color.yellow.saturation(0.3)) Circle().foregroundColor(Color.yellow.saturation(0.3))
None
NavigationView { }
NavigationView { }.navigationViewStyle(StackNavigationViewStyle())
None
struct PopoutAlertView: View { var body: some View { ZStack
{ RoundedRectangle(cornerRadius: 15) .foregroundColor(Color.green) Text(title) .font(.headline) .padding() } } }
struct PopoutAlertView: View { var body: some View { ZStack
{ RoundedRectangle(cornerRadius: 15) .foregroundColor(Color.green) .layoutPriority(-1) Text(title) .font(.headline) .padding() } } }
None
ありがとうございました Twitter My Apps