Is there a way to make all items in a collection view fit in one row and scroll horizontally? I want to automatically place items in an another row. Instead, my collection view items (which are returning from a server) are going on separate rows. I'm trying to copy something like Instagram's story display. (I would post a like but it has to get approved and this is pretty urgent). Thanks for any help/advice in advance.
override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return pictures.count
}