iOS version of the work started by https://github.com/ryanshawty/