If we’re going to build a Bluetooth application, we need to be able to decode the data we receive. Swift has a native way to convert encoded data into types – the Decoder protocol. In today’s post, we’ll explore the basics of implementing a custom binary data decoder in Swift. We’ll also look at the different types of “containers” and how they work.