Beginner question about Circles (SwiftUI)

You are not wrong, Apple's API is wrong :laughing: :laughing: I'm kidding (or maybe not).

Circle is a Shape, you can do either stroke or fill to a Shape. But not both as you want to do. So the work around is to create two circles lay one on top of the other, apply stroke on one and fill on the other. I say Apple's API is wrong because why not allow both stroke and fill on a Shape?

You can see the solution here:

1 Like