                     self.view.alpha = 0.0;
                 }) { (completed) -> Void in
                     self.view.removeFromSuperview()
-                }
+            }
         }
     }
 

import Foundation
import UIKit

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

    public enum BMPickerModalMode {
        case DatePicker
        case Picker
    }

    /// Closure to be executed when new date is selected
    public var selectionClosure: ((AnyObject) -> Void)?


    private let window: UIWindow = UIApplication.sharedApplication().windows[0] as! UIWindow
    private let popoverSize: CGSize = CGSizeMake(460, 261)

    // MARK: View Life Cycle

