-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose inputView and reloadInputViews method #15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change makes sense, one small request for documentation.
} | ||
} | ||
|
||
public override func reloadInputViews() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add /// :nodoc:
for this line as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, we will merge the change to the internal repository once it passed also internal review as well.
When we publish the change here, I will close this pull request.
Thank you for the contribution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Problems** Due to the internal `UITextView` marked private. We can not access the `inputView` on it. **Solution** Make an interface to expose the API. So that the client could use the `inputView` to customize input. GitHub Pull Request: #15 #15 JIRA Issues: IOS-96982 Differential Revision: https://phabricator.twitter.biz/D642129
**Problems** `TextEditorView` provides some convinient `UIResponder` properties and method implementation, however it prevents changes default behavior and makes users difficult to use these. **Solution** - Provides `inputViewController` read-write property in addition to `inputView` which is implemented by #15. - Make `inputViewController`, `inputAccessoryView`, and `inputAccessoryViewController` goes up the responder chain as like `UITextView`, but not `inputView` (due to `UITextView` implementation.) - Reorganize `UIResponder` related implementation in the code. JIRA Issues: IOS-96169 Differential Revision: https://phabricator.twitter.biz/D649268
The change has been merged to the tip branch and pushed, closing the pull request. |
Thanks, @niw. I notice the PR is merged into the master. And is there any plan to make a release to make that feature debut? The Swift SPM needs a version tag to make the dependency update. |
@MainasuK We will release with a version tag when we confirmed it’s stable soon! |
I tagged |
Problems
Due to the internal
UITextView
marked private. We can not access theinputView
on it.Solution
Make an interface to expose the API. So that the client could use the
inputView
to customize input.Testing
Delear an empty
UIInputView
and call thereloadInputViews()
. It works.