A short sample of how collection views in IOS works, implemented with swift.