 import RxCocoa
 
 public extension UIView {
-    public func nk_addTarget(_ target: Any, action: Selector, for event: UIControl.Event) {
+    @objc public func nk_addTarget(_ target: Any, action: Selector, for event: UIControl.Event) {
         self.nk_addSubview(UIButton()) {
             $0.snp.makeConstraints({ (make) in
                 make.edges.equalToSuperview()

        return nil
    }
    
    @discardableResult public func nk_addBorder(borderWidth: CGFloat = 1,
                                                color: UIColor = UIColor.black,
                                                cornerRadius: CGFloat = 0) -> UIView {
        self.layer.borderColor = color.cgColor

        return self
    }
    
    @objc public func nk_snapshot() -> UIImage {
        UIGraphicsBeginImageContextWithOptions(self.frame.size, false, UIScreen.main.scale)
        
        let context = UIGraphicsGetCurrentContext()
