Demo of an issue in iOS 10. See screenshot below. iOS 9 works well: But fails in iOS 10: See the comment in ViewController.swift for more.