NetNewsWire/iOS/MasterFeed/MasterFeedDataSource.swift
2019-11-22 15:23:21 -06:00

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
}
}