LocalizedError
-
Fix: localizedDescription Ignores Your Custom Swift Error
Swift’s localizedDescription shows the generic “The operation couldn’t be completed” message for your error enum. Adopt LocalizedError to return your own text.
Swift’s localizedDescription shows the generic “The operation couldn’t be completed” message for your error enum. Adopt LocalizedError to return your own text.