diff --git a/Client/Extensions/AppearanceExtensions.swift b/Client/Extensions/AppearanceExtensions.swift index 83d47898b72..114b3ca87e0 100644 --- a/Client/Extensions/AppearanceExtensions.swift +++ b/Client/Extensions/AppearanceExtensions.swift @@ -18,6 +18,7 @@ extension Theme { UIToolbar.appearance().barTintColor = colors.footer UINavigationBar.appearance().tintColor = colors.accent + UINavigationBar.appearance().largeTitleTextAttributes = [.foregroundColor: colors.tints.home] UINavigationBar.appearance().appearanceBarTintColor = colors.header UISwitch.appearance().appearanceOnTintColor = colors.accent diff --git a/Client/Frontend/Browser/BrowserViewController.swift b/Client/Frontend/Browser/BrowserViewController.swift index 3d4251f7484..d49bc2af573 100644 --- a/Client/Frontend/Browser/BrowserViewController.swift +++ b/Client/Frontend/Browser/BrowserViewController.swift @@ -1822,6 +1822,12 @@ class BrowserViewController: UIViewController { sourcesAdded: nil ) let container = UINavigationController(rootViewController: controller) + let idiom = UIDevice.current.userInterfaceIdiom + if #available(iOS 13.0, *) { + container.modalPresentationStyle = idiom == .phone ? .pageSheet : .formSheet + } else { + container.modalPresentationStyle = idiom == .phone ? .fullScreen : .formSheet + } self.present(container, animated: true) } activities.append(addToBraveToday) @@ -1873,6 +1879,12 @@ class BrowserViewController: UIViewController { sourcesAdded: nil ) let container = UINavigationController(rootViewController: controller) + let idiom = UIDevice.current.userInterfaceIdiom + if #available(iOS 13.0, *) { + container.modalPresentationStyle = idiom == .phone ? .pageSheet : .formSheet + } else { + container.modalPresentationStyle = idiom == .phone ? .fullScreen : .formSheet + } self.present(container, animated: true) } activities.append(addToBraveToday) diff --git a/Client/Frontend/Settings/Brave Today/BraveTodaySettingsViewController.swift b/Client/Frontend/Settings/Brave Today/BraveTodaySettingsViewController.swift index e43454c32e0..9573fb99bc7 100644 --- a/Client/Frontend/Settings/Brave Today/BraveTodaySettingsViewController.swift +++ b/Client/Frontend/Settings/Brave Today/BraveTodaySettingsViewController.swift @@ -75,6 +75,12 @@ class BraveTodaySettingsViewController: TableViewController { self?.reloadSections() } let container = UINavigationController(rootViewController: controller) + let idiom = UIDevice.current.userInterfaceIdiom + if #available(iOS 13.0, *) { + container.modalPresentationStyle = idiom == .phone ? .pageSheet : .formSheet + } else { + container.modalPresentationStyle = idiom == .phone ? .fullScreen : .formSheet + } self.present(container, animated: true) }, image: nil, accessory: .disclosureIndicator) ]