2019-08-29 01:06:27 +02:00
|
|
|
//
|
|
|
|
// MasterFeedDataSource.swift
|
|
|
|
// NetNewsWire-iOS
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 8/28/19.
|
|
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
import RSTree
|
|
|
|
import Account
|
|
|
|
|
2020-06-16 01:03:20 +02:00
|
|
|
class MasterFeedDataSource: UITableViewDiffableDataSource<Int, MasterFeedTableViewIdentifier> {
|
2019-08-29 01:06:27 +02:00
|
|
|
|
|
|
|
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
|
2020-06-16 01:03:20 +02:00
|
|
|
guard let identifier = itemIdentifier(for: indexPath), identifier.isEditable else {
|
2019-08-29 01:06:27 +02:00
|
|
|
return false
|
|
|
|
}
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|