Require values
Switch branches/tags
Nothing to show
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.
Require.xcodeproj
Sources/Require
.gitignore
Package.swift
README.md

README.md

Require

let value: String?

// Catch error if value is nil
let v: String = try value.require()

// Cause fatalError if value is nil
let v: String = value.unsafeRequire()