Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// An example function.
- /// Documentation goes here.
- ///
- /// - Parameters:
- /// - optionalClosure: An optional closure.
- /// - aClosureParameter: This will not be displayed.
- func exampleMethod(optionalClosure: ((_ aClosureParameter: Bool) -> Void)?) {
- // Do something
- }
- /// An example function.
- /// Documentation goes here.
- ///
- /// - Parameters:
- /// - optionalClosure: An optional closure.
- /// - aClosureParameter: This **will** be displayed.
- func exampleMethod(optionalClosure: Optional<(_ aClosureParameter: Bool) -> Void>) {
- // Do something
- }
Add Comment
Please, Sign In to add comment