google.com, pub-2203413632152319, DIRECT, f08c47fec0942fa0
Check Internet Connection if you are going in your application, Your Connection are Cellular & WIFI are ON/OFF. First your create a Network swift class then implement where are you check connection on/off let start:- a create public class Reachability import Foundation import UIKit import SystemConfiguration public class Reachability { class func isConnectedToNetwork() -> Bool { var zeroAddress = sockaddr_in (sin_len: 0 , sin_family: 0 , sin_port: 0 , sin_addr: in_addr (s_addr: 0 ), sin_zero: ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )) zeroAddress. sin_len = UInt8 ( MemoryLayout . size (ofValue: zeroAddress)) zeroAddress. sin_family = sa_family_t ( AF_INET ) let defaultRouteReachability = withUnsafePointer (to: ...