Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Foundation
- class SomeClass {
- func withSomeLongNameMethod(_ block: @escaping () -> (), completion: (() -> Void)? = nil) {
- let someClass = SomeClass()
- someClass.withSomeLongNameMethod({
- print("block")
- }, completion: {
- print("completion")
- })
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement