Shape Modifier Chains

When I attempt to apply multiple modifiers to a shape, Xcode throws an error letting me know the value does not have that member. e.g.


Circle().fill(Color.red).stroke(Color.white, lineWidth: 2)


The code above shows the following error:

Value of type 'ShapeView<Circle, Color>' has no member 'stroke'


It was my impression the power of SwiftUI is it's ability to create custom UI through the use of modifier chains.

Shape Modifier Chains
 
 
Q