mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
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:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user