I have a function that detects the current SSID from the user. Unfortunately this doesn\'t work anymore with iOS 12. This means it just jumps over the if let interface
To use this function in iOS 12 and later, enable the Access WiFi Information capability for your app in Xcode. When you enable this capability, Xcode automatically adds the Access WiFi Information entitlement to your entitlements file and App ID.
https://developer.apple.com/documentation/systemconfiguration/1614126-cncopycurrentnetworkinfo?language=objc