Commit 8a6c5de0 authored by Jose Blaya's avatar Jose Blaya
Browse files

Merge branch '159-dark-mode-issue-conflicting-with-theme-property' into 'release/2.2.0'

Resolve "Dark Mode issue conflicting with Theme property"

See merge request ios/client-library-apple!216
parents d98ad532 02629086
...@@ -69,7 +69,10 @@ open class AutolayoutViewController: UIViewController, ModalController, Restylab ...@@ -69,7 +69,10 @@ open class AutolayoutViewController: UIViewController, ModalController, Restylab
/// :nodoc: /// :nodoc:
open override func viewDidLayoutSubviews() { open override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews() super.viewDidLayoutSubviews()
//MARK: - iOS13 Dark mode
if #available(iOS 13.0, *) {
Macros.postNotification(.PIAThemeShouldChange)
}
refreshOrientationConstraints(size: view.bounds.size) refreshOrientationConstraints(size: view.bounds.size)
} }
...@@ -186,16 +189,6 @@ open class AutolayoutViewController: UIViewController, ModalController, Restylab ...@@ -186,16 +189,6 @@ open class AutolayoutViewController: UIViewController, ModalController, Restylab
} }
//MARK: - iOS13 Dark mode
extension AutolayoutViewController {
override open func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
Macros.postNotification(.PIAThemeShouldChange)
}
}
extension AutolayoutViewController: AnimatingLoadingDelegate { extension AutolayoutViewController: AnimatingLoadingDelegate {
private struct LottieRepos { private struct LottieRepos {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment