 
 import UIKit
 
-protocol MTSlideToOpenDelegate {
+@objc protocol MTSlideToOpenDelegate {
     func mtSlideToOpenDelegateDidFinish(_ sender: MTSlideToOpenView)
 }
 
 class MTSlideToOpenView: UIView {
     // MARK: All Views
     let textLabel: UILabel = {
-       let label = UILabel.init()
+        let label = UILabel.init()
         return label
     }()
     let thumnailImageView: UIImageView = {

    private var xEndingPoint: CGFloat = 0
    private var buttonHeight: CGFloat = 0
    private var isFinished: Bool = false
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupView()

    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)!
        setupView()
    }
    
    private func setupView() {
