This is for iOS … ?
The approach you linked to is not supported because it involves grovelling around in the internal structures of the system’s views. That’s why, as noted in that post, it’s broken on iPhone X.
I’d appreciate you evaluating such links before posting them. At a minimum you should warn folks about the risks.
And, to be clear, there is no supported way for general apps to get Wi-Fi signal strength on iOS. QA1942 iOS Wi-Fi Management APIs has links to what limited Wi-Fi APIs that are available on that platform.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"