๐Ÿ”ฐtransform shape

SwiftUI โŸฉ shapes โŸฉ transform

ๅ› ็‚บ .stroke(lineWidth:), .stroke(style:) ็ญ‰ๆ–นๆณ•้‚„ๆ˜ฏๅ›žๅ‚ณ Shape๏ผŒๆ‰€ไปฅ้€™ๅ€‹ๅ–ฎๅ…ƒ็จฑ็‚บ โ€œtransforming a shapeโ€ใ€‚

โš ๏ธ ๆณจๆ„๏ผš

โ€ข .stroke(lineWidth:), .stroke(style:) ๅ›žๅ‚ณ Shapeใ€‚

โ€ข .stroke(_:lineWidth:), .stroke(_:style:) ๅ›žๅ‚ณ View๏ผŒ่ฆๆณจๆ„โ—๏ธ

  • shape.stroke()๏ผšๆก†็ทšๆœƒๅ‘ๅ…งๅ’Œๅ‘ๅค–ๅ‡ๅ‹ปๅปถๅฑ•

  • shape.strokeBorder()๏ผšๆก†็ทšๅฎŒๅ…จๅ‘ๅ…ง็นช่ฃฝ๏ผŒไธๆœƒ่ถ…ๅ‡บๅฝข็‹€็š„ๅค–็ทฃใ€‚

Last updated