rwbutler / Updates

📲 Automatically detects app updates and seamlessly prompts users to upgrade.
https://medium.com/swlh/updating-users-to-the-latest-app-release-on-ios-ed96e4c76705
MIT License
289 stars 37 forks source link

Public API methods to throw errors? #14

Open feodormak opened 3 years ago

feodormak commented 3 years ago

Is your feature request related to a problem? Please describe. The public APIs for this framework currently does not return any errors, just .available or .none on completion. checkForUpdates returns .none if there is no or poor connectivity.

Describe the solution you'd like The method checkForUpdates should have a completion handler of @escaping (UpdatesResult, Error) -> Void to allows context as to why there is currently no update, and allow us to choose how to present the info in-app.