Skip to content

Commit

Permalink
add conditional modifier View extension
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Jul 25, 2023
1 parent 252788f commit 3e25f66
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import SwiftUI

public extension View {
func conditionalModifier<Content: View>(@ViewBuilder content: (Self) -> Content) -> some View {
content(self)
}
}

0 comments on commit 3e25f66

Please sign in to comment.