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

        view.addSubview(imageSliderView)
        setImageSliderViewConstraints()

        displayLabel.translatesAutoresizingMaskIntoConstraints = false
        displayLabel.textColor = UIColor.white

        view.addSubview(displayLabel)
        setDisplayLabelConstraints()
    }


    }

    open func imageSliderViewImageSwitch(_ index: Int, count: Int, imageUrl: String?) {
        pageControl.numberOfPages = count
        pageControl.currentPage = index
    }
}
