After upgrading my Xcode to Swift 3, I'm getting this error:
Value of type 'String' has no member 'stringByRemovingPercentEncoding'
What is the alternative for stringByRemovingPercentEncoding
in Swift 3?
Use removingPercentEncoding
in Swift 3.
let str = string.removingPercentEncoding
For more detail read Apple documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With