Simple extensions of conversion between Bool and Int values.
print(false.binary) // 0
print(true.binary) // 1
print(0.boolean!) // false
print(1.boolean!) // true
print(2.boolean) // nil
pod 'Boonary'
Tomohiro Imaizumi, [email protected]
Boonary is available under the MIT license. See the LICENSE file for more info.