diff --git a/Sources/OversizeCore/ViewModifier/OnFirstAppear.swift b/Sources/OversizeCore/ViewModifier/OnFirstAppear.swift index 7de7f47..c1604d5 100644 --- a/Sources/OversizeCore/ViewModifier/OnFirstAppear.swift +++ b/Sources/OversizeCore/ViewModifier/OnFirstAppear.swift @@ -7,9 +7,9 @@ import SwiftUI private struct FirstAppear: ViewModifier { let action: () -> Void - + @State private var hasAppeared = false - + func body(content: Content) -> some View { content.onAppear { guard !hasAppeared else { return }