Skip to content

Commit b2c1a1f

Browse files
committed
public -> open
1 parent 95ff5f4 commit b2c1a1f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Sources/FHDiffableViewControllers/FHDiffableTableViewController.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ open class FHDiffableTableViewController<SectionIdentifierType, ItemIdentifierTy
1010

1111
/// A subclass of **UITableViewDiffableDataSource**, where the section title will be displayed if the snapshot contains more then one section.
1212
open class FHDataSource: UITableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType> {
13-
public override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
13+
open override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
1414
let sectionIdentifiers = snapshot().sectionIdentifiers
1515
guard let sectionIdenifier = sectionIdentifiers[safe: section], sectionIdentifiers.count > 1 else {
1616
return nil
@@ -53,7 +53,7 @@ open class FHDiffableTableViewController<SectionIdentifierType, ItemIdentifierTy
5353
/// }
5454
///
5555
/// - important: You need to use a lazy var for it to work properly!
56-
public var dataSource: UITableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType> {
56+
open var dataSource: UITableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType> {
5757
return _dataSource
5858
}
5959

@@ -75,7 +75,7 @@ open class FHDiffableTableViewController<SectionIdentifierType, ItemIdentifierTy
7575
/// - important: Do not forget to register the reuseable cell before the first snapshot is applied!
7676
///
7777
/// tableView.register(CustomCell.self, forCellReuseIdentifier: /*your identifier*/) // e.g. in viewDidLoad()
78-
public var cellProvider: ((UITableView, IndexPath, ItemIdentifierType) -> UITableViewCell?) {
78+
open var cellProvider: ((UITableView, IndexPath, ItemIdentifierType) -> UITableViewCell?) {
7979
return _cellProvicer
8080
}
8181

@@ -103,7 +103,7 @@ open class FHDiffableTableViewController<SectionIdentifierType, ItemIdentifierTy
103103
/// - snapshotData: The data snapshot for the table view.
104104
/// - animatingDifferences: A boolean value to deactive the animation. Default value is `true`.
105105
/// - completion: The completion block for when the update is finished. Default value is `nil`.
106-
public func applySnapshot(_ snapshotData: FHSnapshotData, animatingDifferences: Bool = true, completion: (() -> Void)? = nil) {
106+
open func applySnapshot(_ snapshotData: FHSnapshotData, animatingDifferences: Bool = true, completion: (() -> Void)? = nil) {
107107
var snapshot = FHSnapshot()
108108

109109
snapshot.appendSections(snapshotData.map({ $0.sectionIdentifier }))
@@ -117,7 +117,7 @@ open class FHDiffableTableViewController<SectionIdentifierType, ItemIdentifierTy
117117

118118
// MARK: - Overrides
119119

120-
public override func viewDidLoad() {
120+
open override func viewDidLoad() {
121121
super.viewDidLoad()
122122

123123
tableView.register(UITableViewCell.self, forCellReuseIdentifier: "default")

0 commit comments

Comments
 (0)