Commit 331773234b

331773234b649c69bd7be4ad0a183dcbf83cbeba

parent: 7d137d1b02

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-26 00:20 UTC

iOS onboarding: no cut-off icon at the scroll edge

At accessibility text sizes the first feature row's icon was cut off by
the bottom of the scroll view and showed as a blue sliver above Continue.
Feature rows drop their icons at accessibility sizes, the scroll view
fades its top and bottom 40 pt, and its indicator flashes on appear.

Ref #221

Layout: unified · split

Sources/OrgstarMobile/OnboardingScreen.swift +16 −2 · view
@@ -17,6 +17,7 @@ struct OnboardingScreen: View {
1717 @State private var importing = false
1818 @State private var problem: String?
1919 @Environment(\.accessibilityReduceMotion) private var reduceMotion
20 @Environment(\.dynamicTypeSize) private var dynamicTypeSize
2021
2122 private enum Step: Int, CaseIterable {
2223 case welcome, folder, notifications, calendar, reminders
@@ -179,10 +180,20 @@ struct OnboardingScreen: View {
179180 Text(text).font(.body).foregroundStyle(.secondary).multilineTextAlignment(.center)
180181 content
181182 }
182 .padding(.vertical, 24)
183 .padding(.vertical, 40)
183184 .frame(maxWidth: .infinity, minHeight: geometry.size.height)
184185 }
185186 .scrollBounceBehavior(.basedOnSize)
187 .scrollIndicatorsFlash(onAppear: true)
188 // Text cut off at an edge fades out rather than showing as a sliver; the fades
189 // cover only the padding when the page fits.
190 .mask {
191 VStack(spacing: 0) {
192 LinearGradient(colors: [.clear, .black], startPoint: .top, endPoint: .bottom).frame(height: 40)
193 Color.black
194 LinearGradient(colors: [.black, .clear], startPoint: .top, endPoint: .bottom).frame(height: 40)
195 }
196 }
186197 }
187198 VStack(spacing: 12) { actions() }
188199 }
@@ -190,7 +201,10 @@ struct OnboardingScreen: View {
190201
191202 private func feature(_ symbol: String, _ title: LocalizedStringKey, _ text: LocalizedStringKey) -> some View {
192203 HStack(alignment: .top, spacing: 14) {
193 Image(systemName: symbol).font(.title2).foregroundStyle(Color.accentColor).frame(width: 32)
204 // At accessibility sizes the text takes the whole width.
205 if !dynamicTypeSize.isAccessibilitySize {
206 Image(systemName: symbol).font(.title2).foregroundStyle(Color.accentColor).frame(width: 32)
207 }
194208 VStack(alignment: .leading, spacing: 2) {
195209 Text(title).font(.headline)
196210 Text(text).font(.subheadline).foregroundStyle(.secondary)
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form