flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
598 stars 40 forks source link

Editable Text in UITextView #259

Open hakkurishian opened 6 years ago

hakkurishian commented 6 years ago

Motivation

As fas as I can see there is no option yet for editing text. Despite setting isEditable to true on UITextView, text cannot be edited (at least not on Mac).

Proposed solution

Implement editing functionality to UITextView and UITextField. What are the prerequisites to do so ?

Potential alternatives

ephemer commented 5 years ago

@hakkurishian sorry, this seems to have flown under our radar.

We don’t currently have plans to implement edit ability on UITextView because we have tasks that directly affect our app that aren’t yet implemented/fixed. (We don’t have any editable UITextViews). But if you’re interested in giving it a go that would be a very interesting development. I can outline what that might look like if you have interest and time to look into it?

hakkurishian commented 5 years ago

Thanks for getting back on it. We have some interesting things going on in our app dev currently which pushes the cross platform project for which we’d use UIKit-XP. I will observe the development of the project and once we get back on our XP project revisit it and then also have a look at implementing this even though it sounds quite hard for me regarding all the editing capabilities of a UITextField ...

ephemer commented 5 years ago

Sure thing! Yes it’s not an overnight job but get back to me when you have more clarity and I’m happy to outline the bits and pieces that’d go into this; which parts of the codebase would be relevant for you etc

ephemer commented 5 years ago

The main thing is- the whole project is iterative. You wouldn’t need to implement every single detail at once. As you can see the UITextView does just what we need it to at this point. But building on a pre-defined API means that it’s an evolutionary process