Skip to content

Commit

Permalink
Fixed access level for condition modifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Oct 12, 2023
1 parent 9941ab8 commit 94cf28a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftUIExtension/Extensions/ViewExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import SwiftUI

extension View {

@ViewBuilder func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
@ViewBuilder public func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
if condition {
transform(self)
} else {
Expand Down

0 comments on commit 94cf28a

Please sign in to comment.