Polish for Onboarding Carousel

Add dark mode assets and colours.
Improve layout for 12" iPad and 4" iPhone.
Move isLockedToPortraitOnPhone to RiotNavigationController.
This commit is contained in:
Doug
2022-01-17 17:37:59 +00:00
parent 8cc6644378
commit af0785b2bb
22 changed files with 2484 additions and 151 deletions
@@ -30,17 +30,6 @@ class VectorHostingController: UIHostingController<AnyView> {
// MARK: Public
/// When `true` the presented view will have its orientation fixed to portrait on iPhone.
var isLockedToPortraitOnPhone = false
override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
if isLockedToPortraitOnPhone && UIDevice.current.isPhone {
return .portrait
}
return super.supportedInterfaceOrientations
}
init<Content>(rootView: Content) where Content: View {
self.theme = ThemeService.shared().theme
super.init(rootView: AnyView(rootView.vectorContent()))