func inset(by: CGFloat) -> some InsettableShape
Returns
self
inset by amount
.
amount
だけ差込したself
を返します。
func strokeBorder <S>(S, lineWidth : CGFloat, antialiased: Bool) -> some View
Returns a view that is the result of filling the
width
-sized border (aka inner stroke) of self
with content
. This is equivalent to insetting self
by width / 2
and stroking the resulting shape with width
as the line-width.func strokeBorder <S>(S, style: StrokeStyle , antialiased: Bool) -> some View
Returns a view that is the result of insetting
self
by style.lineWidth / 2
, stroking the resulting shape with style
, and then filling with content
.func strokeBorder (lineWidth : CGFloat, antialiased: Bool) -> some View
Returns a view that is the result of filling the
width
-sized border (aka inner stroke) of self
with the foreground color. This is equivalent to insetting self
by width / 2
and stroking the resulting shape with width
as the line-width.func strokeBorder (style: StrokeStyle , antialiased: Bool) -> some View
Returns a view that is the result of insetting
self
by style.lineWidth / 2
, stroking the resulting shape with style
, and then filling with the foreground color.