Files
NetNewsWire/iOS/MainTimeline/MainTimelineDataSource.swift
T

24 lines
881 B
Swift
Raw Normal View History

//
2024-12-24 12:09:41 -08:00
// MainTimelineDataSource.swift
// NetNewsWire-iOS
//
// Created by Maurice Parker on 8/30/19.
// Copyright © 2019 Ranchero Software. All rights reserved.
//
import UIKit
2026-01-01 18:07:54 -08:00
final class MainTimelineDataSource<SectionIdentifierType, ItemIdentifierType>: UITableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType> where SectionIdentifierType: Hashable, ItemIdentifierType: Hashable {
2024-12-24 12:09:41 -08:00
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
2026-01-01 18:07:54 -08:00
true
}
}
2026-01-24 10:50:13 +08:00
final class MainTimelineCollectionViewDataSource<SectionIdentifierType, ItemIdentifierType>: UICollectionViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType> where SectionIdentifierType: Hashable, ItemIdentifierType: Hashable {
2026-01-26 10:57:29 -08:00
2026-01-24 10:50:13 +08:00
override func collectionView(_ collectionView: UICollectionView, canMoveItemAt indexPath: IndexPath) -> Bool {
false
}
2026-01-26 10:57:29 -08:00
2026-01-24 10:50:13 +08:00
}