Show general-settings (IOS-14)
This commit is contained in:
parent
e201193ee4
commit
dfcda1f1da
|
@ -35,6 +35,7 @@ class SettingsCoordinator: NSObject, Coordinator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - SettingsViewControllerDelegate
|
||||||
extension SettingsCoordinator: SettingsViewControllerDelegate {
|
extension SettingsCoordinator: SettingsViewControllerDelegate {
|
||||||
func done(_ viewController: UIViewController) {
|
func done(_ viewController: UIViewController) {
|
||||||
viewController.dismiss(animated: true)
|
viewController.dismiss(animated: true)
|
||||||
|
@ -43,8 +44,10 @@ extension SettingsCoordinator: SettingsViewControllerDelegate {
|
||||||
func didSelect(_ viewController: UIViewController, entry: SettingsEntry) {
|
func didSelect(_ viewController: UIViewController, entry: SettingsEntry) {
|
||||||
switch entry {
|
switch entry {
|
||||||
case .general:
|
case .general:
|
||||||
break
|
let generalSettingsViewController = GeneralSettingsViewController()
|
||||||
// show general
|
generalSettingsViewController.delegate = self
|
||||||
|
|
||||||
|
navigationController.pushViewController(generalSettingsViewController, animated: true)
|
||||||
case .notifications:
|
case .notifications:
|
||||||
break
|
break
|
||||||
// show notifications
|
// show notifications
|
||||||
|
@ -62,6 +65,7 @@ extension SettingsCoordinator: SettingsViewControllerDelegate {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - AboutViewControllerDelegate
|
||||||
extension SettingsCoordinator: AboutViewControllerDelegate {
|
extension SettingsCoordinator: AboutViewControllerDelegate {
|
||||||
func didSelect(_ viewController: AboutViewController, entry: AboutSettingsEntry) {
|
func didSelect(_ viewController: AboutViewController, entry: AboutSettingsEntry) {
|
||||||
switch entry {
|
switch entry {
|
||||||
|
@ -88,8 +92,14 @@ extension SettingsCoordinator: AboutViewControllerDelegate {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - ASWebAuthenticationPresentationContextProviding
|
||||||
extension SettingsCoordinator: ASWebAuthenticationPresentationContextProviding {
|
extension SettingsCoordinator: ASWebAuthenticationPresentationContextProviding {
|
||||||
func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
|
func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
|
||||||
return navigationController.view.window!
|
return navigationController.view.window!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK: - GeneralSettingsViewControllerDelegate
|
||||||
|
extension SettingsCoordinator: GeneralSettingsViewControllerDelegate {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue