Skip to content

Commit

Permalink
Merge pull request #3 from stonko1994/feature/conditional-modifier
Browse files Browse the repository at this point in the history
Add conditional modifier View extension
  • Loading branch information
stonko1994 authored Jul 25, 2023
2 parents 252788f + 3e25f66 commit 05970ce
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 05970ce

Please sign in to comment.