mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-28 10:30:14 +01:00
23 lines
528 B
Swift
23 lines
528 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<Int, MasterFeedTableViewIdentifier> {
|
|
|
|
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
|
|
guard let identifier = itemIdentifier(for: indexPath), identifier.isEditable else {
|
|
return false
|
|
}
|
|
return true
|
|
}
|
|
|
|
}
|