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?
https://github.com/skywinder/ActionSheetPicker-3.0...
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
Solution
///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





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

return
}, origin: sender)
//Assignable buttons and open the picker
picker?.setDoneButton(done)
picker?.setCancelButton(cancel)
picker?.show()
August 19th 19 at 22:58
https://www.google.ru/search?client=safari&rls=en&...

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