Auth
- added sample for custom IDSs scopes
- added sample for customization of supported IDPs
- documentation updates
Database
- Data sources (
FirebaseCollectionViewDataSource
, FirebaseTableViewDataSource
) no longer create/dequeue/reuse cells. Users are now responsible for cell creation and reuse.
- Data sources now require a closure on initialization to populate their views.
UITableView
and UICollectionView
have been extended to make it easier to bind them to Firebase queries. Now you don't have to write out the ridiculously long data source class names multiple times.
// objc
self.dataSource = [self.tableView bindToQuery:self.query
populateCell:^UITableViewCell *(UITableView *tableView,
NSIndexPath *indexPath,
FIRDataSnapshot *object) {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kTestReuseIdentifier];
/* ... */
return cell;
}];
// swift
self.dataSource = self.collectionView.bind(to: self.query!) { (view, indexPath, snap) -> UICollectionViewCell in
let cell = view.dequeueReusableCell(withReuseIdentifier: FIRChatViewController.reuseIdentifier,
for: indexPath)
/* ... */
return cell
}