I'm creating a simple TipViewStyle based on sample code but it fails to compile. It displays: Type 'MyViewStyle' does not conform to protocol 'TipViewStyle'
When I choose the Fix option, it adds this line:
`type alias Body = type'
What should the type be here?
struct MyTipViewStyle: TipViewStyle {
func makeBody(config: Configuration) -> some View {
VStack {
config.title
config.message?
}
}
Post
Replies
Boosts
Views
Activity
I'm attempting to use this sample code in Xcode 16 and iOS 18. I get a compile error indicating "cannot find 'CLCircularGeographicCondition'
The remainder of the sample code does not compile as in the document
the compiler wants "await" before the call to monitor.add
and another "await" before monitor.events
Is there updated sample code for this use case?