mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
"With" is an indication that the first argument is not the direct object of the base name. Therefore, label the first argument with everything that follows the "With". Examples: - func addButtonWithTitle(_: String) -> NSButton + func addButton(title: String) -> NSButton - func updateWithPanRecognizer(_: NSPanGestureRecognizer) + func update(panRecognizer: NSPanGestureRecognizer) - func appendBezierPathWithRoundedRect(_: NSRect, xRadius: CGFloat, yRadius: CGFloat) + func appendBezierPath(roundedRect: NSRect, xRadius: CGFloat, yRadius: CGFloat) Swift SVN r31872
24 KiB
24 KiB