Created
June 27, 2019 02:02
-
-
Save culjo/bbf09fa20cb10dac385a7bf58a2bdec7 to your computer and use it in GitHub Desktop.
A the second snippets from the swift login tutorial
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
Image("logo") | |
.resizable() // make the image resizable | |
.aspectRatio(contentMode: ContentMode.fit) | |
.frame(width: 74.0, height: 74.0) // constraints the image to a specified width and height | |
.padding(Edge.Set.bottom, 20) // Adds a 20 space padding to the bottom of the image | |
Text("Login").bold().font(.title) // text with bold and title font |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment