Skip to content
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

Implement readOnly textAreaRow feature #1489

Merged
merged 3 commits into from
Apr 9, 2018

Conversation

davidrft
Copy link
Contributor

Based on this issue I added the possibility for a scrollable read only textAreaRow. I also changed the Example app to show its implementation. Hope it helps!

@@ -226,6 +231,9 @@ open class _TextAreaCell<T> : Cell<T>, UITextViewDelegate, AreaCell where T: Equ
}

open func textViewShouldBeginEditing(_ textView: UITextView) -> Bool {
if let textAreaRow = self.row as? TextAreaRow, textAreaRow.textAreaMode == .readOnly {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should cast as _TextAreaRow here.

@mats-claassen mats-claassen merged commit 13c4cc8 into xmartlabs:master Apr 9, 2018
@davidrft davidrft deleted the readonly-text-area-row branch April 27, 2018 22:14
@davidrft davidrft restored the readonly-text-area-row branch April 27, 2018 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants