0

I am writing an iOS app in Swift 2 using Xcode 7.

I want to display a set of a user's trophies. For this, I am imagining a horizontally scrollable display as each trophy image is small, but users can have more trophies that fit across a screen.

You can see a Sketch example here: i.stack.imgur.com/VtpEc.png

I first thought that I could use a UIScrollableView, but I don't think this will work because user's are NOT supposed to be able to zoom into these trophies. BUT, if UIScrollView is the way to go, then how do I go about implementing it horizontally and without zoom? The most similar feature in an app that I have found is in Facebook's iOS app. Facebook uses these "horizontally scrollable views" for suggested friends/groups.

You can see what I am talking about in this screenshots: Facebook Horizontal Scroll

This feature also seems to be built in to Apple's iOS. When choosing which action to perform, users are presented with a "horizontally scrollable list" of apps to choose from.

See what I'm talking about here: built in iOS horizontal scroll

I would appreciate any help that anyone can offer! Thank you!

Billy Caruso
  • 149
  • 11

1 Answers1

1

They're using a UICollectionView with an horizontal flow layout.

This more detailed answer might help you to figure out how to implement it: https://stackoverflow.com/a/19435898/5741377

Community
  • 1
  • 1
chedabob
  • 5,835
  • 2
  • 24
  • 44