Created
June 24, 2021 02:31
-
-
Save o-nnerb/7913a5583125dd1a638a1a17fcfe4113 to your computer and use it in GitHub Desktop.
Example of properties linked to Color and Font
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 { | |
Text("Hello World!") | |
.foregroundColor(.ds.primary.medium) | |
.font(.arial.medium.xxxl) | |
.lineSpacing(.medium) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment