Commit 4c8fcc41 authored by Jose Blaya's avatar Jose Blaya
Browse files

Use traidCollectionDidChange

parent 1a2a7c36
......@@ -69,11 +69,15 @@ open class AutolayoutViewController: UIViewController, ModalController, Restylab
/// :nodoc:
open override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
refreshOrientationConstraints(size: view.bounds.size)
}
open override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
//MARK: - iOS13 Dark mode
if #available(iOS 13.0, *) {
Macros.postNotification(.PIAThemeShouldChange)
}
refreshOrientationConstraints(size: view.bounds.size)
}
private func refreshOrientationConstraints(size: CGSize) {
......
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