0

Currently I am trying to recreate something like the Instagram/Pinterest iOS profile page where you can swipe between sections that have different data and layout while having a header that doesn't scroll horizontally but vertically with each section. A very similar design to the current Instagram and Pinterest profile layouts.

I have made a layout that is similar which uses a custom segmented control in the header that uses a delegate to change between sections but this won't work because I have now integrated IGListKit which uses section controllers.

I have scoured the internet looking for examples on how to achieve this but haven't found anything useful. If anyone could provide resources I could look into or examples on how to achieve the desired layout, that would be helpful!

1 Answers1

0

Check this library out: https://github.com/subinspathilettu/SJSegmentedViewController

This will give you a ViewController with a header view controller with multiple segments; I have posted a screenshot below:

enter image description here

Asmin Ghale
  • 195
  • 2
  • 12
  • Although this is close to what I want, it has many flaws. I have since implemented and tested with this library and found the header doesn't bounce like you would get with Instagram or a traditional collection view and the scrolling sticks. If you have any resources on how I can do it myself so I can have more control over the experience that would be helpful. Thank you for the response. – Harrison Senesac Sep 01 '19 at 15:37