As to give his name to button done and cancel to ActionSheetPiker on swift3?

On the guide hub is given instructions on how to do it, but not on swift, help how to свифт3 to write?
here is the code to change the title of the button. there is still the link with the addition of icons.
ActionSheetStringPicker *picker = [[ActionSheetStringPicker alloc] initWithTitle:@"Select a Block" rows:colors initialSelection:0 doneBlock:done cancelBlock:cancel origin:sender];
[picker setDoneButton:[[UIBarButtonItem alloc] initWithTitle:@"My Text" style:UIBarButtonItemStylePlain target:nil action:nil]];
[picker showActionSheetPicker];
August 19th 19 at 22:54
2 answers
August 19th 19 at 22:56
///Our buttons
let done = UIBarButtonItem()
done.title = "Ready"
let cancel = UIBarButtonItem()
cancel.title = "Cancel"

///The picker

let picker = ActionSheetMultipleStringPicker.init(title: "Select a Department", rows: [our array], initialSelection: [0], doneBlock:
picker, indexes, values in

print("values = \(values)")
print("indexes = \(indexes)")
print("picker = \(picker)")
///Operation done on

}, cancel:
////Action to cancel
ActionMultipleStringCancelBlock in

}, origin: sender)
//Assignable buttons and open the picker
August 19th 19 at 22:58

The higher the response to the question in the Google search, the less I want to answer it.
If you do not want can not answer, and answer from your link I saw. Like I'm really stupid - Damaris_Botsfor commented on August 19th 19 at 23:01

Find more questions by tags Apple XcodeSwift