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.

Accepted Reply

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

  • Capsule
  • Circle
  • ContainerRelativeShape
  • Ellipse
  • OffsetShape
  • Path
  • Rectangle
  • RotatedShape
  • RoundedRectangle
  • ScaledShape
  • TransformedShape
Add a Comment

Replies

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

  • Capsule
  • Circle
  • ContainerRelativeShape
  • Ellipse
  • OffsetShape
  • Path
  • Rectangle
  • RotatedShape
  • RoundedRectangle
  • ScaledShape
  • TransformedShape
Add a Comment