An implementation of the Adapter Pattern in Objective-C and Swift