strokeBorder
Returns a view that is the result of filling the lineWidth-sized border (aka inner stroke) of self with content. This is equivalent to insetting self by lineWidth / 2 and stroking the resulting shape with lineWidth as the line-width.
InsettableShape ModifieriOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
Overloads
6 ways to call compose().strokeBorder(). Each is one SwiftUI overload, picked by the arguments you pass.
compose().strokeBorder(
content?: SwiftUI.ShapeStyle,
options?: {
lineWidth?: number;
antialiased?: boolean;
}
)@export(implementation) nonisolated func strokeBorder<S>(
_ content: S = .foreground,
lineWidth: CGFloat = 1,
antialiased: Bool = true
) -> StrokeBorderShapeView<Self, S, EmptyView>
where S : ShapeStyleParameters
contentSwiftUI.ShapeStyleoptions.lineWidthnumberoptions.antialiasedboolean
See also
More in InsettableShape modifiers.