GithubHelp home page GithubHelp logo

chrishonwyllie / composabledatasource Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 522 KB

Encapsulates UICollectionView DataSource and Delegate functions elsewhere, and moving redundant or often, tedious code out of the ViewController

License: MIT License

Ruby 1.48% Swift 98.52%
composable datasource datasources encapsulation extract ios swift uicollectionview

composabledatasource's People

Contributors

chrishonwyllie avatar

Watchers

 avatar  avatar

composabledatasource's Issues

Investigate the ...immediately operations

When UICollectionView.reloadData() is called, the intention was for the completion block to fire once this has finished.
Perhaps this empty performBatchUpdates should be replaced with an async call to to the main DispatchQueue

Address issue with cell padding property

The cellPadding property appears to set constraint padding for the cell containerView against its contentView as well as rounding the corners of appropriate cells.
This may be an unintended result.

Address issue with deleting the last cell model in the DataSource

Upon deleting the last cell model in a DataSourceProvider section, it will delete the array that represents the section as well.
This is normal behavior except for when it was the last section in the entire DataSourceProvider.
Doing this will return a completely empty provider, which can cause crashes when checking the numberOfItems(in section: Int) function.

Refactor the func deleteCellItems(atIndexPaths indexPaths: [IndexPath]) to avoid doing this

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.