mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
Fix drag sutters and enable swipe to pop gesture.
Add docs and last tweaks following a self review. Add constants for max content size and disable splash screen via build settings.
This commit is contained in:
@@ -25,7 +25,9 @@ struct OnboardingSplashScreenPage: View {
|
||||
@Environment(\.theme) private var theme
|
||||
|
||||
// MARK: Public
|
||||
/// The content that this page should display.
|
||||
let content: OnboardingSplashScreenPageContent
|
||||
/// The height of the non-scrollable content in the splash screen.
|
||||
let overlayHeight: CGFloat
|
||||
|
||||
var isDarkModeEnabled: Bool {
|
||||
@@ -64,11 +66,12 @@ struct OnboardingSplashScreenPage: View {
|
||||
|
||||
Spacer()
|
||||
|
||||
Spacer()
|
||||
.frame(maxHeight: overlayHeight)
|
||||
// Prevent the content from clashing with the overlay content.
|
||||
Spacer().frame(maxHeight: overlayHeight)
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.frame(maxWidth: 600, maxHeight: 750)
|
||||
.frame(maxWidth: OnboardingCoordinator.maxContentWidth,
|
||||
maxHeight: OnboardingCoordinator.maxContentHeight)
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
.background(backgroundGradient.ignoresSafeArea())
|
||||
|
||||
Reference in New Issue
Block a user