Fix text truncation in onboarding views
Add .fixedSize(horizontal: false, vertical: true) to prevent multiline text from being clipped on smaller screens. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -53,6 +53,7 @@ struct OnboardingTime: View {
|
||||
.font(.body.weight(.medium))
|
||||
.foregroundColor(.white.opacity(0.85))
|
||||
.multilineTextAlignment(.center)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.padding(.horizontal, 40)
|
||||
|
||||
Spacer()
|
||||
@@ -87,6 +88,7 @@ struct OnboardingTime: View {
|
||||
Text("You'll get a gentle reminder at \(formatter.string(from: onboardingData.date)) every day")
|
||||
.font(.subheadline.weight(.medium))
|
||||
.foregroundColor(.white.opacity(0.9))
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
}
|
||||
.padding(.horizontal, 30)
|
||||
.padding(.bottom, 80)
|
||||
|
||||
Reference in New Issue
Block a user