override func viewDidLoad() {
super.viewDidLoad()
let images=["1","2","3"]
scrollView=LGCircleScrollView1.init(frame: CGRect(x: 0, y: 100, width: SCREEN_Width, height: 200))
scrollView.addPageImages(images)
self.view.addSubview(scrollView )
}
将https://github.com/DreamingLuo/LGCircleScrollView/tree/master工程中的LGCircleScrollView1拖到自己工程中
传入frame和images就OK了