diff --git a/Sources/FHDiffableViewControllers/FHDiffableCollectionViewController.swift b/Sources/FHDiffableViewControllers/FHDiffableCollectionViewController.swift index 80db66b..58f9d0d 100644 --- a/Sources/FHDiffableViewControllers/FHDiffableCollectionViewController.swift +++ b/Sources/FHDiffableViewControllers/FHDiffableCollectionViewController.swift @@ -78,9 +78,9 @@ open class FHDiffableCollectionViewController.CellProvider { @@ -124,17 +124,17 @@ open class FHDiffableCollectionViewController.SupplementaryViewProvider? { /// return { (collectionView, kind, indexPath) in - /// let supplementaryView = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: /*your identifier*/, for: indexPath) as? CustomReuseableView + /// let supplementaryView = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: /*your identifier*/, for: indexPath) as? CustomReusableView /// /*customize your supplementary view here*/ /// return supplementaryView /// } /// } /// ``` /// - /// - Important: Do not forget to register the reuseable view before the first snapshot is applied! + /// - Important: Do not forget to register the reusable view before the first snapshot is applied! /// /// ```swift - /// collectionView.register(CustomReuseableView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: /*your identifier*/) // e.g. in viewDidLoad() + /// collectionView.register(CustomReusableView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: /*your identifier*/) // e.g. in viewDidLoad() /// ``` open var supplementaryViewProvider: UICollectionViewDiffableDataSource.SupplementaryViewProvider? { return _supplementaryViewProvider @@ -143,7 +143,7 @@ open class FHDiffableCollectionViewController Void)? = nil) { var snapshot = FHSnapshot() diff --git a/Sources/FHDiffableViewControllers/FHDiffableTableViewController.swift b/Sources/FHDiffableViewControllers/FHDiffableTableViewController.swift index aef6c40..4ea68c9 100644 --- a/Sources/FHDiffableViewControllers/FHDiffableTableViewController.swift +++ b/Sources/FHDiffableViewControllers/FHDiffableTableViewController.swift @@ -12,10 +12,10 @@ open class FHDiffableTableViewController String? { let sectionIdentifiers = snapshot().sectionIdentifiers - guard let sectionIdenifier = sectionIdentifiers[safe: section], sectionIdentifiers.count > 1 else { + guard let sectionIdentifier = sectionIdentifiers[safe: section], sectionIdentifiers.count > 1 else { return nil } - return "\(sectionIdenifier)" + return "\(sectionIdentifier)" } } @@ -31,7 +31,7 @@ open class FHDiffableTableViewController.CellProvider { - return _cellProvicer + return _cellProvider } /// The data source for the table view. /// /// Override this property only if a custom **UITableViewDiffableDataSource** should be applied. - /// For cell configuration overried the ``cellProvider`` property. + /// For cell configuration override the ``cellProvider`` property. /// /// ```swift /// lazy var customDataSource = CustomDataSource(tableView: tableView, cellProvider: cellProvider) @@ -86,7 +86,7 @@ open class FHDiffableTableViewController