ChiriUtils

Most common Swift helpers/tools are summarized here


Keywords
cocoapods, library, pod, swift, swift4, utility, utils-library
License
MIT
Install
pod try ChiriUtils

Documentation

ChiriUtils

This helper library includes some of the most basic and used commonly written features in everyday Swift development such as:

  • JSONDecodable: implement this protocol in order to transform JSON's data Decobale compliant models and worry only about passing in its Type and decoding strategy (only if you wish to for the later one, otherwise a .default will be implemented for you)

  • JSONHelper: read locally stored files within your project or inside the app's bundle with this factory class.

  • Result: make your API calls type safe using this enum so that all states are handled. Optionally, convert all JSON success response data into your custom Decodable models (backwards compatibility with Swift 4).

  • And more: deque your UITableView/UICollectionView in a typesafe way. Avoid the guard-let-else dance altogether or even worse: the infamaus force casting !

Feel free to submit your pull requests and I'll happily check them. Thanks!