     // MARK: User Actions
 
     func save () {
-        if self.selectionClosure != nil {
+        if self.onSelection != nil {
 
             if self.mode == .DatePicker {
-                self.selectionClosure!(self.datePicker.date)
+                self.onSelection!(self.datePicker.date)
             }
             else if self.mode == .Picker {
-                self.selectionClosure!(self.selectedPickerValueIndex)
+                self.onSelection!(self.selectedPickerValueIndex)
             }
 
         }

    :param: selection closure to be executed when new date is selected
    */
    public func show (selection: ((AnyObject) -> Void)?) {
        self.selectionClosure = selection

        self.view.alpha = 0.0
        window.addSubview(self.view)

public class BMPickerModal: UIViewController, UIPopoverPresentationControllerDelegate, UIPickerViewDataSource, UIPickerViewDelegate {

    /// Closure to be executed when new date is selected
    public var onSelection: ((AnyObject) -> Void)?
    public var shownInPopover: Bool = false

    public var mode: BMPickerModalMode = .DatePicker
