Skip to content

Instantly share code, notes, and snippets.

@SatoTakeshiX
Created December 23, 2019 15:56
Show Gist options
  • Save SatoTakeshiX/a26e0e83ce6ce97bf53a62eeaf72cbe3 to your computer and use it in GitHub Desktop.
Save SatoTakeshiX/a26e0e83ce6ce97bf53a62eeaf72cbe3 to your computer and use it in GitHub Desktop.
SwiftUIのButtonのタップ領域を広げるにはViewの方をpaddingする #CodePiece #SwiftUI
Button(action: doSomething) {
Text("Default padding")
.padding()
.background(Color.yellow)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment