15 lines
417 B
Swift
15 lines
417 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
public struct CollectionUpdate: Hashable {
|
|
public let sections: [CollectionSection]
|
|
public let maintainScrollPositionItemId: String?
|
|
public let shouldAdjustContentInset: Bool
|
|
}
|
|
|
|
extension CollectionUpdate {
|
|
static let empty: Self = Self(
|
|
sections: [],
|
|
maintainScrollPositionItemId: nil,
|
|
shouldAdjustContentInset: false)
|
|
}
|