Swift Hide Button

[Solved] Swift Hide Button | Swift - Code Explorer | yomemimo.com
Question : swift hide button

Answered by : lmaocoder

//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 isHidden to the label, and thus we need to use the action label syntax for more complex labels (Multiple text views, etc.)

Source : | Last Update : Thu, 19 Aug 21

Answers related to swift hide button

Code Explorer Popular Question For Swift