We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Из гайда https://github.com/TouchInstinct/Styleguide/blob/master/IOS/Guides/Custom_Network_Service_Guide.md#обработка-ошибок-при-запросах
Актуализировать вот этот кусок кода:
extension Error { var requestError: RequestError? { return self as? RequestError } var serverError: ServerError? { switch requestError { case .mapping(_, let response)?: guard let json = try? cast(response) as [String: Any] else { return nil } return try? ServerError(JSON: json) default: return nil } } }
И добавить это в LeadKit.
Вместо вычисляемой property serverError сделать функцию с generic параметром.
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Готово
ZharaOo
No branches or pull requests
Из гайда https://github.com/TouchInstinct/Styleguide/blob/master/IOS/Guides/Custom_Network_Service_Guide.md#обработка-ошибок-при-запросах
Актуализировать вот этот кусок кода:
И добавить это в LeadKit.
Вместо вычисляемой property serverError сделать функцию с generic параметром.
The text was updated successfully, but these errors were encountered: