I'd never seen this before. (This is an image I can't upload.)
How are you supposed to format this?
Text(
"""
\(
{ var nameComponents = PersonNameComponents()
nameComponents.givenName = "Given"
nameComponents.familyName = "Family"
return nameComponents as NSPersonNameComponents
} (),
formatter: {
let formatter = PersonNameComponentsFormatter()
formatter.style = .long
return formatter
} ()
)
"""
)
Post
Replies
Boosts
Views
Activity
It doesn't make any intuitive sense to me.