mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-09 17:09:25 +00:00
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)
|
|
}
|