Skip to content

Commit a69fdb9

Browse files
committed
Fixed protect level.
1 parent efdab4d commit a69fdb9

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

Sources/SPDiffable/CellProvider/Models/SPDiffableItem.swift renamed to Sources/SPDiffable/Models/SPDiffableItem.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ open class SPDiffableItem: NSObject, NSCopying {
3434
Always shoud be uniq. But if it changed, diffable system remove old and insert new (not reload).
3535
Identifier uses in `Hashable` and `Equatable` protocols.
3636
*/
37-
public var identifier: Identifier
37+
open var identifier: Identifier
3838

3939
// MARK: - Init
4040

@@ -44,13 +44,13 @@ open class SPDiffableItem: NSObject, NSCopying {
4444

4545
// MARK: - Hashable and Equatable
4646

47-
public override var hash: Int {
47+
open override var hash: Int {
4848
var hasher = Hasher()
4949
hasher.combine(identifier)
5050
return hasher.finalize()
5151
}
5252

53-
public override func isEqual(_ object: Any?) -> Bool {
53+
open override func isEqual(_ object: Any?) -> Bool {
5454
guard let object = object as? SPDiffableItem else { return false }
5555
return identifier == object.identifier
5656
}
@@ -59,7 +59,7 @@ open class SPDiffableItem: NSObject, NSCopying {
5959

6060
// Implemented becouse when using with collection,
6161
// sometimes catch error about unregognized selector.
62-
public func copy(with zone: NSZone? = nil) -> Any {
62+
open func copy(with zone: NSZone? = nil) -> Any {
6363
return SPDiffableItem(identifier: self.identifier)
6464
}
6565

Sources/SPDiffable/CellProvider/Models/SPDiffableSection.swift renamed to Sources/SPDiffable/Models/SPDiffableSection.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ open class SPDiffableSection: NSObject, NSCopying {
3535
Always shoud be uniq. But if it changed, diffable system remove old and insert new (not reload).
3636
Identifier uses in `Hashable` and `Equatable` protocols.
3737
*/
38-
public var identifier: SectionIdentifier
38+
open var identifier: SectionIdentifier
3939

40-
public var header: SPDiffableItem?
41-
public var footer: SPDiffableItem?
40+
open var header: SPDiffableItem?
41+
open var footer: SPDiffableItem?
4242

43-
public var items: [SPDiffableItem]
43+
open var items: [SPDiffableItem]
4444

4545
// MARK: - Init
4646

@@ -53,13 +53,13 @@ open class SPDiffableSection: NSObject, NSCopying {
5353

5454
// MARK: - Hashable and Equatable
5555

56-
public override var hash: Int {
56+
open override var hash: Int {
5757
var hasher = Hasher()
5858
hasher.combine(identifier)
5959
return hasher.finalize()
6060
}
6161

62-
public override func isEqual(_ object: Any?) -> Bool {
62+
open override func isEqual(_ object: Any?) -> Bool {
6363
guard let object = object as? SPDiffableSection else { return false }
6464
return identifier == object.identifier
6565
}
@@ -68,7 +68,7 @@ open class SPDiffableSection: NSObject, NSCopying {
6868

6969
// Implemented becouse when using with collection,
7070
// sometimes catch error about unregognized selector.
71-
public func copy(with zone: NSZone? = nil) -> Any {
71+
open func copy(with zone: NSZone? = nil) -> Any {
7272
return SPDiffableSection(
7373
identifier: self.identifier,
7474
header: self.header,

Sources/SPDiffable/CellProvider/Models/SPDiffableTextHeaderFooter.swift renamed to Sources/SPDiffable/Models/SPDiffableTextHeaderFooter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import UIKit
2626
*/
2727
open class SPDiffableTextHeaderFooter: SPDiffableItem {
2828

29-
public var text: String
29+
open var text: String
3030

3131
public init(identifier: String? = nil, text: String) {
3232
self.text = text

Sources/SPDiffable/CellProvider/Models/SPDiffableWrapperItem.swift renamed to Sources/SPDiffable/Models/SPDiffableWrapperItem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ open class SPDiffableWrapperItem: SPDiffableItem {
3535
SPDiffable: You can pass any object as model.
3636
Later need uwrap it for get.
3737
*/
38-
public var model: Any
38+
open var model: Any
3939

4040
public init(identifier: String, model: Any) {
4141
self.model = model

0 commit comments

Comments
 (0)