I would like to set the wifi status on ios and in order to do that, I need to to swipe up from the bottom the Control Center.
dimension = driverWrapper.getIo
JavascriptExecutor executor = driver; executor.executeScript( "target.frontMostApp().mainWindow().dragInsideWithOptions({startOffset:{x:0.5, y:0.1}, endOffset:{x:0.5, y:0.7}, duration:0.8});");
Check if this works .. if not try to reduce the y:0.01 further.