Skip to content

Commit

Permalink
Fix #6107 - Updated the dark theme icon and locked portrait mode for …
Browse files Browse the repository at this point in the history
…ETP Coversheet (#6258)
  • Loading branch information
nbhasin2 authored Mar 17, 2020
1 parent d7a0bf8 commit 08e1e25
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"images" : [
{
"idiom" : "universal",
"filename" : "illustration-tracking-protection-updated_.pdf",
"filename" : "illustration-tracking-protection-updated_(edited).pdf",
"scale" : "1x"
},
{
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,15 @@ class ETPCoverSheetViewController: UIViewController {
}
}

// UIViewController setup to keep it in portrait mode
extension ETPCoverSheetViewController {
override var shouldAutorotate: Bool {
return false
}

override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
// This actually does the right thing on iPad where the modally
// presented version happily rotates with the iPad orientation.
return .portrait
}
}

0 comments on commit 08e1e25

Please sign in to comment.