Created
January 28, 2020 08:11
-
-
Save CyberBison/d2561f39f4a75d8b62027e7f0e03b1cc to your computer and use it in GitHub Desktop.
ContentView example for https://medium.com/@gaspard.rosay/create-a-login-page-with-swiftui-7fef0424678a
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
struct ContentView: View { | |
var body: some View { | |
VStack{ | |
Image("lock") | |
.resizable() | |
.aspectRatio(contentMode: .fill) | |
.frame(width: 200.0, height: 200.0) | |
.cornerRadius(90.0) | |
Text("I am protected by a login page.") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment