Demo project to present ReactiveSwift capabilities on error handling.
The project presents error mapping from low level network related errors, through parsing errors ending on high level user oriented error types.
Project utilizes strongly typed errors in ReactiveSwift to present the concept and show framework's capabilities.
- You will need
carthage
in version 0.23.0 or higher, to install run:
brew install carthage
- Clone the project and navigation to project's root dir
- Run:
carthage bootstrap --platform iOS --cache-builds
- Compile & run the project
Project consists of:
- Main.storyboard
ViewController.swift
- main and only view controller- Network related files:
HTTPResponse
,HTTPTransaction
,HTTPError
- JSON decoding:
JSONFormat
&JSONDecodingError
URLRequest
extension
Main logic of the app (and the main concept) can be found in ViewController
.
Author: Radosław Szeja
License: MIT
Special thanks to netguru.co