🔰transform shape

SwiftUIshapes ⟩ transform

因為 .stroke(lineWidth:), .stroke(style:) 等方法還是回傳 Shape,所以這個單元稱為 “transforming a shape”。

  • shape.stroke():框線會向內向外均勻延展

  • shape.strokeBorder():框線完全向內繪製,不會超出形狀的外緣

Last updated

Was this helpful?