Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Fix/10545 Corrupted layout in QR code creation screen on iPhone SE first generation #5147

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,22 @@ class TraceLocationConfigurationViewController: UIViewController, FooterViewHand
permanentDefaultLengthFootnoteLabel.text = AppStrings.TraceLocations.Configuration.defaultCheckinLengthFootnote

}

override func viewWillAppear(_ animated: Bool) {
// Fix an overlay bug for iPhone SE 1st
DispatchQueue.main.async { [weak self] in
self?.navigationController?.navigationBar.isTranslucent = false
self?.navigationController?.navigationBar.backgroundColor = .enaColor(for: .background)
}
}

override func viewWillDisappear(_ animated: Bool) {
// Fix an overlay bug for iPhone SE 1st
DispatchQueue.main.async { [weak self] in
self?.navigationController?.navigationBar.isTranslucent = true
self?.navigationController?.navigationBar.backgroundColor = nil
}
}

// MARK: - Protocol FooterViewHandling

Expand Down