UICollectionView

In this Swift code example, you will learn how to create and display UICollectionView in Swift Programmatically. The Swift code example in this tutorial will cover the following: Create UICollectionView programmatically, Set UICollectionView layout UIEdgeInsets, Set UICollectionView item size(width and height), Set UICollectionView background color, Set UICollectionView Item background-color, Implement UICollectionView Delegate method didSelectItemAtIndexPath to…

Read More Create UICollectionView in Swift Programmatically

In this Swift code example, you will learn how to programmatically create UICollectionView and load a list of images from a remote URL. The below swift code example will cover: Create UICollectionView programmatically Set UICollectionView item size(width and height) Set UICollectionView background color Set UICollectionView Item background-color Implement UICollectionView Delegate method didSelectItemAtIndexPath to handle an…

Read More UICollectionView. Load List of Images From Remote Server Url

In this tutorial, you will learn how to create a UICollectionView programmatically in Swift. You will learn how to create a new UICollectionView with UICollectionViewFlowLayout and will learn how to make it display a few cells. You will also learn how to make your UIViewController conform to a UICollectionViewDelagate to handle events when user taps on…

Read More Create UICollectionView Programmatically in Swift