Update OBExtensions.swift
⚒ Library for more convenient optional binding.
import OBExtensions
Before
var string: String? guard let s = string else { return "" }
After
var string: String? let s = string.obe(error: { return "" })
and
if let s = string { print("string :: \(s)") } else { fatalError() }
let s = string.obe { print("string :: \($0)") }
pod 'OBExtensions'
import PackageDescription let package = Package( name: "MyApp", dependencies: [ .Package(url: "https://github.com/Pelagornis/OBExtensions", branch: "main"), ] )
OBExtensions is under MIT license. See the LICENSE file for more info.
OBExtensions
⚒ Library for more convenient optional binding.
Using
import
Use
Before
After
and
Before
After
Installation
License
OBExtensions is under MIT license. See the LICENSE file for more info.