This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
Releases: 3lvis/DATASource
Releases · 3lvis/DATASource
DATASource — 5.9.0
public func reloadCells(at indexPaths: [NSIndexPath])
self.collectionView?.reloadItemsAtIndexPaths([indexPath])
is pretty heavy, is usually one of the most heavy operations you can do in a UICollectionView
. Also when it reloads the cells it flashes or blinks which is a quite terrible effect. This release adds a better way to reload cells in DATASource.
DATASource — 6.0.0 (Beta 1)
Swift 3 migration.
DATASource — 5.8.1
- Reduce memory footprint
DATASource — 5.8.0
- Improve Swift API and ObjC compatibility
Added:
func all<T: NSManagedObject>() -> [T]
func object<T: NSManagedObject>(indexPath indexPath: NSIndexPath) -> T?
func indexPath(object object: NSManagedObject) -> NSIndexPath?
func titleForHeader(section section: Int) -> String?
DATASource — 5.7.1
DATASource — 5.7.0
- Add support for setting custom row animations per type (#63)
let dataSource = DATASource(tableView: self.tableView, cellIdentifier: "Cell", fetchRequest: request, mainContext: self.dataStack.mainContext, configuration: { cell, item, indexPath in
cell.textLabel?.text = item.valueForKey("title") as? String
})
dataSource.animations[.Insert] = .Fade
Great addition @zarv1k!
DATASource — 5.6.3
- Make sure that inserted, updated and deleted indexes are unique
DATASource — 5.6.2
- Added Carthage support
DATASource — 5.6.1
- Updated for Swift 2.2
DATASource — 5.6.0
- Fixed crash when inserting and deleting sections from collection view