iOS26: added support for iOS 26 deployment target + CI (fixed layout issues, added splash screen, fixed nav title insets).

This commit is contained in:
mahee96
2025-10-15 20:22:35 +05:30
parent c319524df6
commit d41a6b17d2
8 changed files with 304 additions and 287 deletions

View File

@@ -202,6 +202,16 @@ final class SettingsViewController: UITableViewController
{
super.viewDidLoad()
// --- iOS 26 fix ---
if #available(iOS 26.0, *) {
let appearance = UINavigationBarAppearance()
// appearance.configureWithOpaqueBackground() // or .defaultBackground if you want blur
// appearance.backgroundColor = UIColor(named: "SettingsBackground")
appearance.titleTextAttributes = [.foregroundColor: UIColor.white]
appearance.largeTitleTextAttributes = [.foregroundColor: UIColor.white]
navigationController?.navigationBar.standardAppearance = appearance
navigationController?.navigationBar.scrollEdgeAppearance = appearance // required for iOS 26, maybe enforce it in storyboard?
}
let nib = UINib(nibName: "SettingsHeaderFooterView", bundle: nil)
self.prototypeHeaderFooterView = nib.instantiate(withOwner: nil, options: nil)[0] as? SettingsHeaderFooterView