Last active
March 22, 2021 14:12
-
-
Save DaisukeNagata/6d065dc8927a54ae2b21eda25a1eeb21 to your computer and use it in GitHub Desktop.
SimpleDesign_SwiftUI.swift
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 { | |
VStack { | |
Color.yellow | |
.frame(maxWidth: .infinity, maxHeight: .infinity) | |
VStack { | |
HStack { | |
Button(action: { | |
// something | |
}) { | |
Text("Trim") | |
.frame(width: 50, height: 50, alignment: .center) | |
} | |
Button(action: { | |
// something | |
}) { | |
Image(systemName: "camera.circle.fill") | |
.renderingMode(.original) | |
.resizable() | |
.frame(width: 50, height: 50, alignment: .center) | |
} | |
.background(Color.white) | |
Button(action: { | |
// something | |
}) { | |
Text("OCR") | |
.frame(width: 50, height: 50, alignment: .center) | |
} | |
} | |
.frame(maxWidth: .infinity) | |
.padding() | |
} | |
} | |
} | |
} |
Author
DaisukeNagata
commented
Mar 21, 2021
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment