[Solved] Objective-C blocks to Swift [closed]


I’ll help you with closures as I expect they are the most hard part of the code. Rest of the stuff is pretty similar to Java and other OOP languages.
You can check closure syntax here. Correct me if my syntax is wrong:

    picker.finalizationBlock = {(picker, info) in
        //Your code here...
    }
    picker.failureBlock = {(picker, error) in
        //Your code here...
    }
    picker.cancellationBlock = {(picker) in
        //Your code here...
    }

1

solved Objective-C blocks to Swift [closed]