I'm trying to create the Twitter Profile effect. I attach you the effect: https://streamable.com/bj07t.
I have this configuration:
UIView
UIScrollView
UIContainerView -> TopView
UIView (where I add the views for the navigationBar and username)
UICollectionView (The number of items will be variable)
UIContainerView -> DetailView
UIPageViewController
UITableViewController
I use the same UITableViewController to add all types of information that I have to show(collectionView types). I will reuse this UITableViewController.
I have two problems with this effect:
- What constraints should I add in both containers?
- When I have to change the TopView height, I use the function: func scrollViewDidScroll(scrollView: UIScrollView). But I don't know how to change the DetailView height because I have to change this information in the MainViewController and this information will be in the ChildTableViewController (MainViewController contain the PageViewController and PageViewController has ChildTableViewController)
Thank you for your help.