AnyFormatProtocol
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.