I have implemented Page Swipe with a UIPageViewController.
Delegates and DataSource are working properly. The indexing, the whole thing.
The problem I have is, since the Page Controller is part of the UIPageViewController, its default position is at the bottom. Since it is part of it, I can not change it on the storyboard.
Could anyone point me in the right direction?
I tried this, but didn't work
self.view.frame = CGRect(origin: CGPoint(x: 0.0, y: 30.0), size: CGSize(width: self.view.frame.width, height: self.view.frame.size.height - 200.0))
Also tried this. But all it did was create a second PageControl
let pageControl = UIPageControl()
pageControl.pageIndicatorTintColor = UIColor.grayColor()
pageControl.currentPageIndicatorTintColor = UIColor.whiteColor()
pageControl.backgroundColor = UIColor.darkGrayColor()
pageControl.numberOfPages = 4
pageControl.center = self.view.center
self.view.addSubview(pageControl)
pageControl.layer.position.y = self.view.frame.height - 200;
// 200 point from bottom of the screen
I have googled it, but didn't find anything useful. Thanks