WWDC 2017
- The Keys to a Better Text Input Experience - Friday
Session video and resources: https://developer.apple.com/videos/play/wwdc2017/242/
- Being in the right space
- Use keyboard anchors in auto-layout
- Use
intrinsicContentSize
TextInputContextIdentifier
UITextContentType
- Provides contextual predictions
- Displays on QuickType bar
- QuickType Sources are shown in the bar
- Context Types for Password AutoFill
UITextContentTypeUsername
&UITextContentTypePassword
- Check password autofill session
- Typographical automatic conversions
- Automatic whitespace handling for context being added/deleted
All these are turned by on default but UITextInputTraits
.default
,.yes
,.no
- Override the key commands in UIResponder via
UIKeyCommand
to support actions like CMD-Z
- Subclass
UIInputViewController
- Incorporate the system input menu via globe icon
- Personalization with the supplementary lexicon
- Multilingual