Coder Social home page Coder Social logo

iosbrain / uicollectionview---extension Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 15 KB

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/

License: MIT License

Swift 100.00%
swift-extensions swift ios ios-swift collectionview uicollectionview uicollectionviewcell extensions xcode protocols

uicollectionview---extension's Introduction

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").

uicollectionview---extension's People

Contributors

iosbrain avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

multinerd-forks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.