Can I draw other shaper in Xcode?

Hello world, can I draw something else in Xcode, like when I write Circle(), it draws me a circle in the screen, or when I write Rectangle(), it appear a rectangle in the simulator... So are there other commands to draw some different shapes like this or I can elusively use these ones?

Thank you.

Answered by PaulSolt in 699269022

From the Shape protocol: https://developer.apple.com/documentation/swiftui/shape

  • Capsule
  • Circle
  • ContainerRelativeShape
  • Ellipse
  • OffsetShape
  • Path
  • Rectangle
  • RotatedShape
  • RoundedRectangle
  • ScaledShape
  • TransformedShape
Accepted Answer

From the Shape protocol: https://developer.apple.com/documentation/swiftui/shape

  • Capsule
  • Circle
  • ContainerRelativeShape
  • Ellipse
  • OffsetShape
  • Path
  • Rectangle
  • RotatedShape
  • RoundedRectangle
  • ScaledShape
  • TransformedShape
Can I draw other shaper in Xcode?
 
 
Q