Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 2.45 KB

The_Keys_to_a_Better_Text_Input_Experience.md

File metadata and controls

61 lines (52 loc) · 2.45 KB

WWDC 2017

Table of Contents

The Keys to a Better Text Input Experience - Friday

Session video and resources: https://developer.apple.com/videos/play/wwdc2017/242/

Integrating the Keyboard into Your App

Undocked and Split Keyboards

  • Being in the right space

Working with non-scrolling views

  • Use keyboard anchors in auto-layout
  • Use intrinsicContentSize

Making Your App Feel Magical

Multilingual - Remembering User Selected Keyboard

UIResponder to Remember Keyboard

  • TextInputContextIdentifier

Being Aware of Context

  • 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

Smart Quote and Smart Dash

  • Typographical automatic conversions

Smart Insertion and Deletion

  • Automatic whitespace handling for context being added/deleted

All these are turned by on default but UITextInputTraits

  • .default, .yes, .no

Marked Text

Hardware Keyboard

  • Override the key commands in UIResponder via UIKeyCommand to support actions like CMD-Z

Creating Custom Input Views

  • Subclass UIInputViewController

Other Third Party Keyboard APIs

  • Incorporate the system input menu via globe icon
  • Personalization with the supplementary lexicon
  • Multilingual