mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-18 12:28:37 +01:00
23 lines
516 B
Swift
23 lines
516 B
Swift
//
|
|
// 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
|
|
|
|
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
|
|
}
|
|
|
|
}
|