2019-08-30 21:17:05 +02:00
|
|
|
//
|
|
|
|
// MasterTimelineDataSource.swift
|
|
|
|
// NetNewsWire-iOS
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 8/30/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
class MasterTimelineDataSource<SectionIdentifierType, ItemIdentifierType>: UITableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType> where SectionIdentifierType : Hashable, ItemIdentifierType : Hashable {
|
|
|
|
|
2019-09-01 19:43:07 +02:00
|
|
|
private var coordinator: SceneCoordinator!
|
2019-08-30 21:17:05 +02:00
|
|
|
|
2019-09-01 19:43:07 +02:00
|
|
|
init(coordinator: SceneCoordinator, tableView: UITableView, cellProvider: @escaping UITableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType>.CellProvider) {
|
2019-08-30 21:17:05 +02:00
|
|
|
super.init(tableView: tableView, cellProvider: cellProvider)
|
|
|
|
self.coordinator = coordinator
|
|
|
|
}
|
|
|
|
|
|
|
|
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|