I want to terminate app (exit app) when network is not available.
How to do 'terminating app' in swift, and 'the app will be rejected` if I use code for termicating code ?
If this is for a store app, yes, you risk rejection during review.
What KMT said plus…
See QA1561, which specifically addresses this point.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"