To run the example project, clone the repo, and run pod install
from the Example directory first.
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
AnyFormatProtocol is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AnyFormatProtocol"
linhey: linhan.linhey@outlook.com
AnyFormatProtocol is available under the Apache License 2.0 license. See the LICENSE file for more info.