I don't know what you want to set. Whether it will be a button or a switch depends on you.
If you do not know how to create elements such as a button/switch in Swift, then you need to read the documentation and API of Swift or seek help on forums related to Swift because this is not a problem related to Higcharts and it already goes beyond the scope of our support.
Regards!