Skip to content
Some tools to make Optionals easier to use
Swift
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.swiftpm/xcode/package.xcworkspace
Sources/OptionalTools
Tests
.gitignore
Package.swift
README.md

README.md

Swift Optional Tools

Some tools to make Optionals easier to use

Examples

Unwrap or throw an error

let image = try UIImage(named: "My Image").unwrappedOrThrow()
let color = try UIColor(named: "My Color").unwrappedOrThrow(error: ColorNotFoundError())
You can’t perform that action at this time.