Official iOS Paste Fix

Integration of the official fix for the paste function with iOS