Answers for "How to hide view in swiftui"

0

How to hide view in swiftui

extension View {
    @ViewBuilder func hiddenConditionally(isHidden: Binding<Bool>) -> some View {
        isHidden.wrappedValue ? self  :  self.hidden() as? Self
    }
}
Posted by: Guest on April-25-2022

Code answers related to "Swift"

Browse Popular Code Answers by Language