Created
June 8, 2021 15:57
-
-
Save aheze/260a7a4172de93dbac2a66d0c66d7b88 to your computer and use it in GitHub Desktop.
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 { | |
Text(makeAttributedString()) | |
} | |
func makeAttributedString() -> AttributedString { | |
var string = AttributedString("Some Attributed String") | |
string.foregroundColor = .blue | |
return string | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment