     }
 
     open func imageSliderViewImageSwitch(_ index: Int, count: Int, imageUrl: String?) {
-        displayLabel.text = "\(index + 1) / \(count)"
+        pageControl.numberOfPages = count
+        pageControl.currentPage = index
     }
 }

                                            constant: 0.0)
        view.addConstraint(constraint)

        let displayLabelVConstraints = NSLayoutConstraint.constraints(withVisualFormat: "V:[label]-20-|",
                                                                                      options: [],
                                                                                      metrics: nil,
                                                                                      views: ["label": displayLabel])
        view.addConstraints(displayLabelVConstraints)
    }


    }

    open func setDisplayLabelConstraints() {
        let constraint = NSLayoutConstraint(item: pageControl,
                                            attribute: NSLayoutAttribute.centerX,
                                            relatedBy: NSLayoutRelation.equal,
                                            toItem: view,
