mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-13 18:06:50 +01:00
24 lines
530 B
Swift
24 lines
530 B
Swift
//
|
|
// MasterFeedDataSource.swift
|
|
// NetNewsWire-iOS
|
|
//
|
|
// Created by Maurice Parker on 8/28/19.
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
import RSCore
|
|
import RSTree
|
|
import Account
|
|
|
|
class MasterFeedDataSource: UITableViewDiffableDataSource<Node, Node> {
|
|
|
|
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
|
|
guard let node = itemIdentifier(for: indexPath), !(node.representedObject is PseudoFeed) else {
|
|
return false
|
|
}
|
|
return true
|
|
}
|
|
|
|
}
|