title: is it possible to turn off wifi or switch iPhone to offline mode in codes in swift 4?
body: <p>I want to know is there any way to turn on or off the iPhone wifi or switch the device to offline mode in codes in swift 4 or not 
  I know that apple may not allow the app can do such things to be distributed in App Store But it's Not important I just want to know is there any codes to do that or not (Just in swift 4)</p>