iOS version of source code