Skip to content

Instantly share code, notes, and snippets.

@aheze
Created June 8, 2021 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aheze/260a7a4172de93dbac2a66d0c66d7b88 to your computer and use it in GitHub Desktop.
Save aheze/260a7a4172de93dbac2a66d0c66d7b88 to your computer and use it in GitHub Desktop.
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