Question : How to hide view in swiftui
Answered by : beautiful-bear-u0406yc5u3cj
extension View { @ViewBuilder func hiddenConditionally(isHidden: Binding<Bool>) -> some View { isHidden.wrappedValue ? self : self.hidden() as? Self }
}
Source : https://stackoverflow.com/questions/72004235/how-to-make-a-view-gone-in-swiftui | Last Update : Mon, 02 May 22