Tips For Building Higher-Level Data Types in Swift

This post walks through the creation of a new MyBool type designed and implemented to be very similar to the Bool type built into Swift. We hope this walk through the design of a simple Swift type will help you better understand how the language works – iOS Dev Center