I am facing the same issue while encoding he email like this
let customAllowedSet = NSCharacterSet(charactersIn: "=\"#%/<>?@\\^`{|}+").inverted
email.addingPercentEncoding(withAllowedCharacters: customAllowedSet)
when I try example@something.com it returns this way
iOS 17: example%2540something.com
iOS 16: example%40something.com
Any quick solutions for this issue?