What do you want to save?
Add Code snippet
New code examples
-
Swift 2021-10-23 16:00:14
swift hide button
//Use the .isHidden modifier //The button needs to be in the action: label: syntax //This works if you are using swiftui and not uikit Button(action: { //Actions here }, label: { Text("") .isHidden(Bool) } } //We need to assign the is... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5