title: Change Page When Tapping on Pagecontrol in Swift
body: <p>I know this questions has been answered before on here but I was unable to find an answer using Swift. Currently I have a pageviewcontroller embedded in a container view. The container view is inside the same viewcontroller as the pagecontrol. I'm using a delegate to get the pagecontrol to change when paging back and forth but currently the pages do not change when tapping on the pagecontrol dots. How can I do this in Swift?</p>
  
  <p>The answers I have found on here answer the question but not with a pageviewcontroller.</p>