Created
April 15, 2021 05:36
-
-
Save MazenKilani/054404fa7eacd9c420fa3a732ec63e4b to your computer and use it in GitHub Desktop.
BooksByPublicationYearTableViewController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BooksByPublicationYearTableViewController: UITableViewController { | |
var queryBooks: [Book] = [] | |
var queryTitle = "Pub Year" | |
// Section Headers; we need 3 arrays | |
var sectionHeaderTitles = [String]() // string array of section headers (Pub Years) | |
var sectionBooks = [Book]() // array of one section | |
var sectionBooksArrays = [[Book]]() // array of arrays, each array is one section books | |
let dateFormatter = DateFormatter() // Needed to extract the Year from Publication Date | |
var priorBook = Book() | |
var priorBookSection: String = "" | |
var firstTimeInLoop = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment