iOS 11 - disable smart quotes
iOS 11 adds smart quotes when typing. In macOS we can disable smart quotes on a NSTextView by setting: textView.automaticQuoteSubstitutionEnabled = NO; Neither UITextField or UITextView seem to have this property or the enabledTextCheckingTypes property. How can smart quotes be disabled on iOS 11? Smart quotes and other features such as smart dashes are controlled via the UITextInputTraits Protocol which is adopted by both UITextField and UITextView . Specifically, the smartQuotesType property can be set to one of .default , .yes or .no . At this time there is no further documentation on these