What does the (_:for:)
syntax mean after the draw
text? In particular the underscore and for
. I would assume the two colons are meant to represent that the method takes two arguments.
I just picked this method as an example from https://developer.apple.com/documentation/uikit/uiview/1621844-draw
Additionally, there is a method draw(_:)
and how does this differ from draw(_:for:)
?
This is from https://developer.apple.com/documentation/uikit/uiview/1622529-draw
I am unable to clearly discern what the differences are from reading the documentation.