Created
April 9, 2020 00:01
-
-
Save mfdeveloper/69fa63b541c2114ca44938cdba839242 to your computer and use it in GitHub Desktop.
SwiftUI: Renders a system image, and a text. Pass a custom size to the SF Symbol like a font size in IOS 13+
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
VStack { | |
Image(systemName: "photo.fill") | |
// Images SF symbols contains sizes like text fonts | |
.font(.system(size: 60, weight: .bold)) | |
.padding(10) | |
Text("Error: Image not loaded :(") | |
.font(.title) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment