ExSwift
ExSwift copied to clipboard
Building error caused by wrong function declaration inside Int extension
I am trying to use the library in my Swift project and I think is great, but with Xcode 6.1 I found an issue when I try to build the project specifically with the random
function declaration. Here's the way it should be declared to work properly:
static func random(#max: Int, min: Int = 0) -> Int {
return Int(arc4random_uniform(UInt32((max - min) + 1))) + min
}