I need to implement following layout using IB
http://www.giphy.com/gifs/tK0FNSHglOSyg8sVWx
I am currently using the following Structure
UIScrollView
- Content View (UIView)
- Image Slider (FSPagerView)
- Clinic Name (UILabel)
- Clinic Slogan (UILabel)
- Line Separator View
- Clinic Profile (UITextView)
- Section View (Custom UIView)
- Doctors View (UICollectionView) - Horizontal Scrolling
PFB screenshot of IB
It renders me the following screen
http://www.giphy.com/gifs/fxkcxS2GbJCCQcaiCD
As you can see in above GIF, the layout is working, however I am having hard time making Collection View scroll horizontally inside UIScrollView
My question is
- How do I make UICollectionView scroll horizontally within UIScrollView
- If adding UICollectionView inside UIScrollView is not a good idea, what component do I use for the layout I want to achieve? (if you can just help with the idea)
PS: I tried almost all solution from StackOverflow and other sources to make UICollectionView scrollable inside UIScrollView, nothing works, however I have Implemented a similar layout programmatically (without IB & Autolayout) and it works, for your reference, here is the working code I am using https://iswift.org/playground?dmHCmv&v=3
Thank you.
