diff --git a/Kiwix-iOS/Controller/Library/LibraryLanguageController.swift b/Kiwix-iOS/Controller/Library/LibraryLanguageController.swift
index 7b41f47e..98665a79 100644
--- a/Kiwix-iOS/Controller/Library/LibraryLanguageController.swift
+++ b/Kiwix-iOS/Controller/Library/LibraryLanguageController.swift
@@ -83,7 +83,7 @@ class LibraryLanguageController: UITableViewController, NSFetchedResultsControll
// MARK: - Table view data source
override func numberOfSections(in tableView: UITableView) -> Int {
- return 2
+ return (showLanguages.count + hideLanguages.count) > 0 ? 2 : 0
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
@@ -155,4 +155,12 @@ class LibraryLanguageController: UITableViewController, NSFetchedResultsControll
return 30
}
}
+
+ // MARK: - DZNEmptyDataSet
+
+ func title(forEmptyDataSet scrollView: UIScrollView!) -> NSAttributedString! {
+ return NSAttributedString(string: "No language available",
+ attributes: [NSFontAttributeName: UIFont.boldSystemFont(ofSize: 18),
+ NSForegroundColorAttributeName: UIColor.darkGray])
+ }
}
diff --git a/Kiwix-iOS/Storyboard/Library.storyboard b/Kiwix-iOS/Storyboard/Library.storyboard
index a7c10db9..3c5356c2 100644
--- a/Kiwix-iOS/Storyboard/Library.storyboard
+++ b/Kiwix-iOS/Storyboard/Library.storyboard
@@ -217,7 +217,7 @@
-
+
@@ -254,6 +254,8 @@
+
+