diff --git a/Features/QuranViewFeature/QuranViewController.swift b/Features/QuranViewFeature/QuranViewController.swift index 3c3c8158..ce6478de 100644 --- a/Features/QuranViewFeature/QuranViewController.swift +++ b/Features/QuranViewFeature/QuranViewController.swift @@ -349,6 +349,11 @@ class QuranViewController: BaseViewController, QuranViewDelegate, } private func updateTitle(_ pages: [Page]) { + if pages.isEmpty { + titleView?.firstLine = "" + titleView?.secondLine = "" + return + } let suras = pages.map(\.startSura) let juzs = pages.map(\.startJuz) let pageNumbers = pages.map(\.pageNumber).map(NumberFormatter.shared.format).joined(separator: " - ")