Upgrade to Pro — share decks privately, control downloads, hide ads and more …

SwiftUI 豆知識 - よちよち Swift

Megabits_mzq
November 27, 2020

SwiftUI 豆知識 - よちよち Swift

2020/11/27 よちよち Swift 勉強会での発表スライドです。

Megabits_mzq

November 27, 2020
Tweet

More Decks by Megabits_mzq

Other Decks in Programming

Transcript

  1. import PlaygroundSupport struct MainView: View { var body: some View

    { ······ } } PlaygroundPage.current.setLiveView(MainView())
  2. struct PopoutAlertView: View { var body: some View { ZStack

    { RoundedRectangle(cornerRadius: 15) .foregroundColor(Color.green) Text(title) .font(.headline) .padding() } } }
  3. struct PopoutAlertView: View { var body: some View { ZStack

    { RoundedRectangle(cornerRadius: 15) .foregroundColor(Color.green) .layoutPriority(-1) Text(title) .font(.headline) .padding() } } }