iosbrain / UICollectionView---Extension

UICollectionView starter Xcode 8.2.1 project. Highlights use of Swift extensions to improve readability and maintainability. Supports all basic features (you can add, select/highlight, deselect/unhighlight, and remove UICollectionViewCell's), written in Swift 3.0, and ready to be enhanced.

Home Page:http://iosbrain.com/blog/2017/01/28/using-swift-extensions-and-protocols-and-delegates-and-the-uicollectionview-managing-software-complexity-and-improving-readability/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UICollectionView---Extension

This is a UICollectionView starter project (Xcode 8.2.1), written in Swift 3.0, highlighting the use of Swift extensions to improve code readability, extensibility, and maintainability. Feel free to use it as a template for building out a complete UICollectionView user interface. Build and run this code in the Simulator or on an iPhone and see that you can add, select/highlight, deselect/unhighlight, and remove UICollectionViewCell's. You can select, deselect, add, and remove one cell at a time, or multiple cells at a time. I demonstrate the importance of the relationship between a UICollectionView and its data source, and the importance of keeping a UICollectionView and its data source synchronized. I also emphasize the importance of dividing and conquering code to improve its readability, extensibility, and maintainability.

Xcode 8.2.1 project settings

To get this project running on the Simulator or a physical device (iPhone, iPad), go to the following locations in Xcode and make the suggested changes:

  1. Project Navigator -> [Project Name] -> Targets List -> TARGETS -> [Target Name] -> General -> Signing
  • Tick the "Automatically manage signing" box
  • Select a valid name from the "Team" dropdown
  1. Project Navigator -> [Project Name] -> Targets List -> TARGETS -> [Target Name] -> General -> Identity
  • Change the "com.yourDomainNameHere" portion of the value in the "Bundle Identifier" text field to your real reverse domain name (i.e., "com.yourRealDomainName.Project-Name").

About

UICollectionView starter Xcode 8.2.1 project. Highlights use of Swift extensions to improve readability and maintainability. Supports all basic features (you can add, select/highlight, deselect/unhighlight, and remove UICollectionViewCell's), written in Swift 3.0, and ready to be enhanced.

http://iosbrain.com/blog/2017/01/28/using-swift-extensions-and-protocols-and-delegates-and-the-uicollectionview-managing-software-complexity-and-improving-readability/

License:MIT License


Languages

Language:Swift 100.0%