Updated the iOS specific code in the template.