How to make a hide/unhide data button

Hi guys,

I need the information to be shown in the app only if you click a Hide/Unhide button in the Detail View.
So if you click this button once again it will hide the information.

How can I make that?