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

Commit

Permalink
Merge pull request #5147 from corona-warn-app/fix/10545-Corrupted-lay…
Browse files Browse the repository at this point in the history
…out-in-QR-code-creation-screen-on-iPhone-SE-first-generation

Fix/10545 Corrupted layout in QR code creation screen on iPhone SE first generation
  • Loading branch information
30mar authored Apr 6, 2023
2 parents 583c65a + 3215c20 commit 4f5456b
Showing 1 changed file with 16 additions and 0 deletions.
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

0 comments on commit 4f5456b

Please sign in to comment.