CordData abstraction in Swift