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了