         self.popupScrollView.backgroundColor = bgColor
     }
 
-    func setImageIndex(indexFloat: CGFloat) {
-        let num = CGFloat(self.scrollViewWidth) * indexFloat
-        self.popupScrollView?.setContentOffset(CGPoint(x: num, y: 0.0), animated: false)
-    }
-
+    // MARK: - Set Image Index
     func setImageIndex(indexValue: Int) {
         let num = Int(self.scrollViewWidth) * indexValue
         self.popupScrollView.setContentOffset(CGPoint(x: num, y: 0), animated: false)

        return instance
    }()

    func initWithFrame(frame: CGRect, parentView: UIView) -> ImageSliderSwift {

        self.parentView = parentView


    }

    func hideView() {
        self.removeFromSuperview()
    }

