Swap reversed key/values in getMetadata on iOS