AnyFormatProtocol 0.5.2

AnyFormatProtocol 0.5.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2018
SPMSupports SPM

Maintained by linhay.



  • By
  • linger

AnyFormatProtocol

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

use: format<T>(Any?,deault: T) -> T 
for example:
let int = format("1",default: 6)   ==> 1
let int = format(nil,default: 6)   ==> 6
let int = format(nil)              ==> 0

Installation

AnyFormatProtocol is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AnyFormatProtocol"

Author

linhey: [email protected]

License

AnyFormatProtocol is available under the Apache License 2.0 license. See the LICENSE file for more info.