Update 10/17:This post has been updated to Swift 4. Update 10/16:This post has been updated to Swift 3. Swift provides convenient fixed size integers and the usual set of bitwise operators you already know, so, dealing with bit sets would seem pretty straightforward. But you’ll soon discover that the language and the standard library put always safety first and dealing with bits and different inte