CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

Boonary 0.1.1

Boonary 0.1.1

Maintained by Tomohiro Imaizumi.



Boonary 0.1.1

Boonary

CI Status Version License Platform

Simple extensions of conversion between Bool and Int values.

Example

Bool to Int

print(false.binary) // 0
print(true.binary)  // 1

Int to Bool

print(0.boolean!) // false
print(1.boolean!) // true
print(2.boolean)  // nil

Installation

pod 'Boonary'

Author

Tomohiro Imaizumi, [email protected]

License

Boonary is available under the MIT license. See the LICENSE file for more info.