🔰transform shape
⚠️ 注意:
• .stroke(lineWidth:), .stroke(style:) 回傳 Shape。
• .stroke(_:lineWidth:), .stroke(_:style:) 回傳 View,要注意❗️
shape.stroke():框線會向內和向外均勻延展
shape.strokeBorder():框線完全向內繪製,不會超出形狀的外緣。
Last updated
Was this helpful?
⚠️ 注意:
• .stroke(lineWidth:), .stroke(style:) 回傳 Shape。
• .stroke(_:lineWidth:), .stroke(_:style:) 回傳 View,要注意❗️
shape.stroke():框線會向內和向外均勻延展
shape.strokeBorder():框線完全向內繪製,不會超出形狀的外緣。
Last updated
Was this helpful?