Skip to content

Commit

Permalink
Fix View.hidden() bug (logic was backwards).
Browse files Browse the repository at this point in the history
  • Loading branch information
rlziii committed Oct 1, 2021
1 parent 67a3ed1 commit e6939fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/RZExtensions/SwiftUI/View+hidden.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public struct HiddenViewModifier: ViewModifier {
public let isHidden: Bool

public func body(content: Content) -> some View {
content.opacity(isHidden ? 1 : 0)
content.opacity(isHidden ? 0 : 1)
}
}

Expand Down

0 comments on commit e6939fa

Please sign in to comment.