Guest User

Untitled

a guest
Jul 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. for subView in self.pageVC.view.subviews {
  2. if let subView = subView as? UIScrollView {
  3. subView.delegate = self
  4. }
  5. }
  6.  
  7. func scrollViewDidScroll(_ scrollView: UIScrollView) {
  8.  
  9. debugPrint("offset : (scrollView.contentOffset.x)")
  10. let x = (1/3) * (scrollView.contentOffset.x) - 1
  11. debugPrint("X val :(x)")
  12. }
Add Comment
Please, Sign In to add comment