Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
SkullMag committed Oct 9, 2021
2 parents 2c0cf9d + 99c2261 commit 61bb486
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
18 changes: 0 additions & 18 deletions Definitions/Controller/CollectionPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,26 +101,8 @@ class CollectionPickerViewController: UITableViewController {
print(error)
}


tableView.deselectRow(at: indexPath, animated: true)
self.navigationItem.rightBarButtonItem?.isEnabled = true
}

}


//extension CollectionPickerViewController: UITableViewDelegate {
//
//}
//
//extension CollectionPickerViewController: UITableViewDataSource {
// func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// return 1
// }
//
// func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// <#code#>
// }
//
//
//}
11 changes: 0 additions & 11 deletions Definitions/Controller/CollectionsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,6 @@ extension CollectionsViewController: UITableViewDelegate {

extension CollectionsViewController: UITableViewDataSource {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {

if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
let context = appDelegate.persistentContainer.viewContext
let fetchRequest = NSFetchRequest<Collection>(entityName: "Collection")
do {
collections = try context.fetch(fetchRequest)
} catch {
print(error)
}
}

return collections.count
}

Expand Down

0 comments on commit 61bb486

Please sign in to comment.