How can I make the design by using collection view, please explain me. Here is the image of the design:
Asked
Active
Viewed 423 times
1 Answers
1
This is simply a UICollectionView
with a UIPageControl
below it.
You just need to design a UICollectionViewCell
that looks like a card and use that in your collection view.
Have a look at [this Ray Wenderlich tutorial] to give you an idea how to use a UICollectionView
. Of course you'll need a horizontal scrolling one, but that's easy configurable. Also read the iOS documentation.
You'll also need to scrolling to stop with one full card visible; read this.
Since you're new on StackOverflow you may not know this: On StackOverflow you're expected to first do your own research and try hard to get something working. Then when you have a detailed issue you can't figure out, you post that here. Please do so next time.

meaning-matters
- 21,929
- 10
- 82
- 142
-
Pardon me, but isn't it UIScrollView + UIPageControl? – El Tomato Mar 03 '19 at 10:20
-
@ElTomato `UICollectionView` is a direct subclass of `UIScrollView` that adds functionality you'd have to write yourself if you start with a plain `UIScrollView`. – meaning-matters Mar 03 '19 at 11:03