登录
dnrops/Swift-Optional-Tools
关注点赞复刻(Fork)
  • 主页
  • 代码库
  • 疑修(Issue)
  • 合并请求(PR)
  • 引擎(Engine)
  • 里程碑
  • 维基(Wiki)
  • 动态
目录
master
分支4
标签5
+ 疑修
Web IDE
Ben Leggiero

Merge pull request #8 from RougeWare/feature/5-Dynamic-Library

Added dynamic library whose name is a valid bundle identifier

4年前14次提交
  • .swiftpmInitial commit5年前
  • Sources#1: Introduced some operators for Optionals5年前
  • Tests#2: Corrected file name in header comment5年前
  • .gitignoreInitial commit5年前
  • LICENSE-GENERAL.txtSemantic names for dual licenses4年前
  • LICENSE-SPECIAL.txtSpecified that LICENSE-SPECIAL.txt only applies to some entities4年前
  • LICENSE.txtSemantic names for dual licenses4年前
  • Package.swift#5: Added dynamic library whose name is a valid bundle identifier4年前
  • README.mdAdded `.unwrappedOrThrow()` to `Optional`5年前
目录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())
关于
swift
README.md
51.0 KB
邀请码