The first question would be, what do you want to test, and is toggling Airplane mode the best way to do so?
Having said that. You mention "Platform: iOS (simulators)". If you're specifically looking at iOS Simulators then you need to consider the following:
Simulators don't have Mobile Data, so there is no way to disable this
The "Wifi" connection for Simulators is not controlled through the Simulator, but it uses the host's internet connection, meaning that if you want to disable the connection, you need to disable the connection on your host machine
Some Cloud Vendors have custom options to control the "internet" connection, but they are very limited. So I would "get back to the drawing board" and would ask myself the questions:
What do I need to test/what is the (business/customer) value of what I need to test?
If it is important, do I need to test this with automation, of can I use this case as one of the last manual test cases before releasing?