Last active
August 19, 2020 13:12
-
-
Save hirauchg/ddb58b34910bfde94e42ff2362696bf9 to your computer and use it in GitHub Desktop.
画像などのカスタムボタンの実装
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
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
Button(action: { | |
// タップ時の処理を実装 | |
}) { | |
Image("download") | |
Text("ダウンロード") | |
} | |
} | |
} | |
struct ContentView_Previews: PreviewProvider { | |
static var previews: some View { | |
ContentView() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment