how to hide uitext invisible

hello! i was wondering how i can get a UItext invisible, but when a button is pressed, it will show up or be invisible.

Answered by Claude31 in 704630022

You could set the text as NSAttributedString and then change the color attribute.

What do you mean by "UItext"?

Accepted Answer

You could set the text as NSAttributedString and then change the color attribute.

An alternative to setting color to .clear is to set the alpha value to 0.0.

how to hide uitext invisible
 
 
Q