Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Conversation

dzenbot
Copy link

@dzenbot dzenbot commented Jan 6, 2016

As part of not using any private API in this project, we are disabling a few features until a public API is available.

Keyboard Panning

Because the keyboard is on its own view hierarchy since iOS 9, we needed to lookup for its view so we can move the text input whenever its origin changed. iOS 9 users won't be able to move the keyboard with the gesture anymore, even if the keyboardPanningEnabled is enabled. It will still work in iOS 7 and 8.

Magnifying Glass Detection

Whenever a user activates the magnifying glass by long pressing on the text content area and moves the cursor into a range of text that requires auto-completion, the magnifying glass would disappear all of the sudden, causing erratic UI behaviours. Why, you say? Because we need to reload the textView and disable auto-correction since it overrides any auto-completion while typing.
From now, the isLoupeVisible flag will always be false. These erratic behavior will be back again, in any version of iOS.

The code using private APIs is still available in this project's source code, but commented out. Use it at your own risk.

We have filed a radar proposing new APIs to be added in UITextInputTraits to help making the keyboard experience better.
http://openradar.appspot.com/radar?id=5021485877952512

bradya added a commit that referenced this pull request Jan 8, 2016
@bradya bradya merged commit 26bb7ab into master Jan 8, 2016
@bradya bradya deleted the private-api-deprecation branch January 8, 2016 18:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants