diff --git a/Kiwix-iOS/Controller/Library/LibraryBooksController.swift b/Kiwix-iOS/Controller/Library/LibraryBooksController.swift index c7fff831..e9d821f9 100644 --- a/Kiwix-iOS/Controller/Library/LibraryBooksController.swift +++ b/Kiwix-iOS/Controller/Library/LibraryBooksController.swift @@ -111,6 +111,7 @@ class LibraryBooksController: CoreDataCollectionBaseController, UICollectionView let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as! LibraryCollectionCell let book = fetchedResultController.object(at: indexPath) + print(book.meta4URL) cell.delegate = self cell.imageView.image = UIImage(data: book.favIcon ?? Data()) cell.titleLabel.text = book.title diff --git a/Kiwix-iOS/Controller/Library/LibraryLanguageController.swift b/Kiwix-iOS/Controller/Library/LibraryLanguageController.swift new file mode 100644 index 00000000..109e2b2f --- /dev/null +++ b/Kiwix-iOS/Controller/Library/LibraryLanguageController.swift @@ -0,0 +1,23 @@ +// +// LibraryLanguageController.swift +// Kiwix +// +// Created by Chris Li on 1/23/17. +// Copyright © 2017 Chris Li. All rights reserved. +// + +import UIKit + +class LibraryLanguageController: CoreDataTableBaseController { + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + @IBAction func dismissButtonTapped(_ sender: UIBarButtonItem) { + dismiss(animated: true, completion: nil) + } + +} diff --git a/Kiwix-iOS/Storyboard/Library.storyboard b/Kiwix-iOS/Storyboard/Library.storyboard index e442bc72..445250c9 100644 --- a/Kiwix-iOS/Storyboard/Library.storyboard +++ b/Kiwix-iOS/Storyboard/Library.storyboard @@ -170,7 +170,14 @@ - + + + + + + + + @@ -182,6 +189,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -238,9 +285,28 @@ + + + + + + + + + + + + + + + + + + + diff --git a/Kiwix.xcodeproj/project.pbxproj b/Kiwix.xcodeproj/project.pbxproj index f07bb05e..4e501c49 100644 --- a/Kiwix.xcodeproj/project.pbxproj +++ b/Kiwix.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ 9705D5941E368189005292AC /* Library.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9705D5931E368189005292AC /* Library.storyboard */; }; 9705D5961E368712005292AC /* LibraryBooksController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9705D5951E368712005292AC /* LibraryBooksController.swift */; }; 9705D5981E368933005292AC /* CoreDataCollectionBaseController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9705D5971E368933005292AC /* CoreDataCollectionBaseController.swift */; }; + 9705D59A1E36B876005292AC /* LibraryLanguageController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9705D5991E36B876005292AC /* LibraryLanguageController.swift */; }; 970A2A221DD562CB0078BB7C /* BookOperations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 970A2A211DD562CB0078BB7C /* BookOperations.swift */; }; 970E7F741D9DB0FC00741290 /* 1.8.xcmappingmodel in Sources */ = {isa = PBXBuildFile; fileRef = 970E7F731D9DB0FC00741290 /* 1.8.xcmappingmodel */; }; 970E7F831DA0305000741290 /* WelcomeController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 970E7F7F1DA0305000741290 /* WelcomeController.swift */; }; @@ -162,6 +163,7 @@ 9705D5931E368189005292AC /* Library.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Library.storyboard; sourceTree = ""; }; 9705D5951E368712005292AC /* LibraryBooksController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LibraryBooksController.swift; sourceTree = ""; }; 9705D5971E368933005292AC /* CoreDataCollectionBaseController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CoreDataCollectionBaseController.swift; sourceTree = ""; }; + 9705D5991E36B876005292AC /* LibraryLanguageController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LibraryLanguageController.swift; sourceTree = ""; }; 970912551D7F452C00BBD5A1 /* 1.8.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = 1.8.xcdatamodel; sourceTree = ""; }; 970A2A211DD562CB0078BB7C /* BookOperations.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BookOperations.swift; sourceTree = ""; }; 970E7F731D9DB0FC00741290 /* 1.8.xcmappingmodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcmappingmodel; name = 1.8.xcmappingmodel; path = Kiwix/CoreData/Migration/1.8.xcmappingmodel; sourceTree = SOURCE_ROOT; }; @@ -726,6 +728,7 @@ isa = PBXGroup; children = ( 9705D5951E368712005292AC /* LibraryBooksController.swift */, + 9705D5991E36B876005292AC /* LibraryLanguageController.swift */, ); path = Library; sourceTree = ""; @@ -1099,6 +1102,7 @@ 9705D5961E368712005292AC /* LibraryBooksController.swift in Sources */, 97D681391D6F711A00E5FA99 /* DownloadTask.swift in Sources */, 977B954D1DD4C40400F6F62B /* ScanLocalBook.swift in Sources */, + 9705D59A1E36B876005292AC /* LibraryLanguageController.swift in Sources */, 97D681321D6F70EC00E5FA99 /* MigrationPolicy.swift in Sources */, 976C1DCB1E2FD5FC005EDEC4 /* TableOfContentsController.swift in Sources */, 976C1DD81E327328005EDEC4 /* FontSizeController.swift in Sources */,