I\'m in the process of making a tutorial, and I\'m trying to emulate the style of Path\'s tutorial like so:
http://www.appcoda.com/wp-content/uploads/2013/06/UIPageV
Swift 5.2
you can use this code for your requirment
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
if let myScrollView = view.subviews.filter({ $0 is UIScrollView }).first,
let myPageControl = view.subviews.filter({ $0 is UIPageControl }).first {
myScrollView.frame = view.bounds
view.bringSubviewToFront(myPageControl)
}
}