Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct ContentView: View {
- var body: some View {
- Text(makeAttributedString())
- }
- func makeAttributedString() -> AttributedString {
- var string = AttributedString("Some Attributed String")
- string.foregroundColor = .blue
- return string
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement