Created
December 23, 2019 15:56
-
-
Save SatoTakeshiX/a26e0e83ce6ce97bf53a62eeaf72cbe3 to your computer and use it in GitHub Desktop.
SwiftUIのButtonのタップ領域を広げるにはViewの方をpaddingする #CodePiece #SwiftUI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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