Signal-iOS/SignalUI/ViewControllers/Recipient Picker/RecipientPickerContainerViewController.swift
Harry 520faa95df
Refactor OWSNavigationController
* make shouldCancelNavigationBack a var

* rename OWSNavigationView->OWSNavigationChildController

* forward delegate calls to OWSNavigationController

* apply theme and style to OWSNavigationBar consistently

fix themeing on gif picker controller

* Use topPinned navbar position. Size the blur effect view using the background view

* Use fade animation when hiding the navigation bar

* fix issues with reduced transparency setting

* pr feedback
2022-11-03 16:40:47 -07:00

31 lines
860 B
Swift

//
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
open class RecipientPickerContainerViewController: OWSViewController, OWSNavigationChildController {
public let recipientPicker = RecipientPickerViewController()
open override func themeDidChange() {
super.themeDidChange()
if lifecycle == .willAppear || lifecycle == .appeared {
recipientPicker.applyTheme(to: self)
}
}
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
recipientPicker.applyTheme(to: self)
}
public override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
}
public var objcChildForOWSNavigationConfiguration: OWSViewControllerObjc? {
return recipientPicker
}
}