Skip to content

Commit

Permalink
Add first appear
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Nov 19, 2022
1 parent b7e6c16 commit 73b638e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/OversizeCore/ViewModifier/OnFirstAppear.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 73b638e

Please sign in to comment.