Use a UITableView component for the timeline. (#349)

* Use a collection view for the timeline.
* Switch to a table view.
This commit is contained in:
Doug
2022-12-05 15:39:21 +00:00
committed by GitHub
parent 9415bd3a7a
commit 3c893ba342
27 changed files with 583 additions and 463 deletions
@@ -17,7 +17,7 @@
import Foundation
import MatrixRustSDK
struct MediaSourceProxy: Equatable {
struct MediaSourceProxy: Hashable {
let underlyingSource: MediaSource
init(source: MediaSource) {
@@ -32,9 +32,16 @@ struct MediaSourceProxy: Equatable {
underlyingSource.url()
}
// MARK: - Equatable
}
// MARK: - Hashable
extension MediaSource: Hashable {
public static func == (lhs: MediaSource, rhs: MediaSource) -> Bool {
lhs.url() == rhs.url()
}
static func == (lhs: MediaSourceProxy, rhs: MediaSourceProxy) -> Bool {
lhs.url == rhs.url
public func hash(into hasher: inout Hasher) {
hasher.combine(url())
}
}