rsattar / CLTokenInputView

A replica of iOS's native contact bubbles UI
MIT License
504 stars 127 forks source link

Right To Left language issues #30

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

There are some issues related to RTL languages such as Arabic.

  1. The tokens are laid out from left to right.
  2. While deleting arabic tokens, there shows a slight visual glitch in selected token.

Is there a way to fix these? Can you guide me where to look into?

simulator screen shot jul 18 2016 6 34 15 pm

rsattar commented 8 years ago

I'll add this to the list. I didn't build this with RTL support in mind, but it shouldn't be too bad. I might need your help in finding any bugs after I build it though.

ghost commented 8 years ago

I've implemented right to left support as well as the ability to customize the font. There are two properties to set: (isRightToLeft and fieldFont). I've tested it throughly and it works without any problem. As I don't know how to pull request, I'll attach a zip file. You can check it if you want. I hope other people could benefit from this. Nearly all changes are made in CLTokenInputView.

CLTokenInputView.zip