Swiftpack.co - JiHoonAHN/OBExtensions as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by JiHoonAHN.
JiHoonAHN/OBExtensions 0.1.1
Library for more convenient optional binding.
⭐️ 0
🕓 6 days ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/JiHoonAHN/OBExtensions.git", from: "0.1.1")

OBExtensions

Swift Version License Platform

⚒ Library for more convenient optional binding.

Using

import

import OBExtensions

Use

Before

var string: String?
guard let s = string else {return ""}

After

var string: String?
let s = string.obe(error: {return ""})

and

Before

if let s = string{ 
    print("string :: \(s)") 
}else{
    fatalError()
}

After

let s = string.obe {print("string :: \($0)")}

Installation

pod 'OBExtensions'
import PackageDescription

let package = Package(
  name: "MyApp",
  dependencies: [
    .Package(url: "https://github.com/JiHoonAHN/OBExtensions", branch: "master"),
 ]
)

License

OBExtensions is under MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 0
Last commit: 6 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Version 0.1.1
6 days ago

UPDATE ReadMe

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics