metatext-app-ios-iphone-ipad/ViewModels/Sources/ViewModels/Entities/CollectionUpdate.swift

15 lines
417 B
Swift
Raw Normal View History

2020-10-07 23:06:26 +02:00
// Copyright © 2020 Metabolist. All rights reserved.
public struct CollectionUpdate: Hashable {
2021-01-23 07:15:52 +01:00
public let sections: [CollectionSection]
2020-10-31 01:53:57 +01:00
public let maintainScrollPositionItemId: String?
2021-01-17 03:16:43 +01:00
public let shouldAdjustContentInset: Bool
2020-10-07 23:06:26 +02:00
}
2021-01-31 01:38:56 +01:00
extension CollectionUpdate {
static let empty: Self = Self(
sections: [],
maintainScrollPositionItemId: nil,
shouldAdjustContentInset: false)
}