From ef591252baca495bf6b215b38d077caa9c08d4b5 Mon Sep 17 00:00:00 2001 From: pepaskopec-blip Date: Thu, 8 Oct 2026 21:17:23 +0200 Subject: [PATCH] Fix the Apple build by avoiding a Content name clash in the appear animation. Co-authored-by: Cursor --- ios/Graduately/UI/Components.swift | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ios/Graduately/UI/Components.swift b/ios/Graduately/UI/Components.swift index 9b79bfd..5c74383 100644 --- a/ios/Graduately/UI/Components.swift +++ b/ios/Graduately/UI/Components.swift @@ -17,12 +17,15 @@ struct PressScaleStyle: ButtonStyle { } } -private struct SoftAppear: ViewModifier { +/// Named so it does not collide with the app's `Content` type, which would +/// otherwise hide `ViewModifier.Content` and fail the build. +private struct SoftAppear: View { @Environment(\.accessibilityReduceMotion) private var reduceMotion @State private var shown = false + var inner: Inner - func body(content: Content) -> some View { - content + var body: some View { + inner .opacity(reduceMotion || shown ? 1 : 0) .offset(y: reduceMotion || shown ? 0 : 8) .onAppear { @@ -38,7 +41,7 @@ private struct SoftAppear: ViewModifier { extension View { /// One short fade-in. Use on a landing surface, not on every pushed screen. func softAppear() -> some View { - modifier(SoftAppear()) + SoftAppear(inner: self) } }