This is a Swift µframework providing
Result<Value, Error> values are either successful (wrapping
Value) or failed (wrapping
Error). This is similar to Swift’s native
Optional type, with the addition of an error value to pass some error code, message, or object along to be logged or displayed to the user.
API documentation is in the source.
- Add this repository as a submodule and/or add it to your Cartfile if you’re using carthage to manage your dependencies.
Result.xcodeprojinto your project or workspace.
- Link your target against
- Application targets should ensure that the framework gets copied into their application bundle. (Framework targets should instead require the application linking them to include Result.)