Post

Replies

Boosts

Views

Activity

Where is the String interpolation from "Structure your app for SwiftUI previews" documented?
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     } ()   )   """ )
1
0
592
Jun ’20