 import UIKit
 import Kingfisher
 
-class AutoCycleAdview: UIView {
-    
-    var collectionView: UICollectionView!
-    var itemsCount: Int = 0
-    var interval: Double = 5.0
-    var isAutoScroll: Bool = true
-    var isShowPageControl: Bool = true
-    var isHiddenWhenSinglePage: Bool = true
-    var placeholder: UIImage = UIImage()
-    var backgroundImgView: UIImageView = UIImageView()
-    var timer: Timer!
-    var layout: UICollectionViewFlowLayout!
-    var pageControl: UIPageControl!
-    var callback: ((Int) -> ())?
-    var onlyDisplayText: Bool = false
-    
-    var imagUrls: [String] = [] {
+public class AutoCycleAdview: UIView {
+    
+    public var interval: Double = 5.0
+    public var isAutoScroll: Bool = true
+    public var isShowPageControl: Bool = true
+    public var isHiddenWhenSinglePage: Bool = true
+    public var placeholder: UIImage = UIImage()
+    public var callback: ((Int) -> ())?
+    public var onlyDisplayText: Bool = false
+    
+    fileprivate var collectionView: UICollectionView!
+    fileprivate var itemsCount: Int = 0
+    fileprivate var backgroundImgView: UIImageView = UIImageView()
+    fileprivate var timer: Timer!
+    fileprivate var layout: UICollectionViewFlowLayout!
+    fileprivate var pageControl: UIPageControl!
+    
+    public var imagUrls: [String] = [] {
         didSet {
             itemsCount = imagUrls.count * 100
             if imagUrls.count > 1 {

    func deinitTimer() {
        timer?.invalidate()
        timer = nil
    }
    
    func automaticScroll() {

        }
    }
    
    public var titles: [String] = [] {
        didSet {
            if onlyDisplayText {
                imagUrls = titles
