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

Setting KSToken font property #108

Open
mohammedsafwat opened this issue Sep 13, 2018 · 0 comments
Open

Setting KSToken font property #108

mohammedsafwat opened this issue Sep 13, 2018 · 0 comments

Comments

@mohammedsafwat
Copy link

Hello! First, thanks for the nice library.

I was trying to figure out a way to set the font property on a KSToken instance, but unfortunately, I didn't find a way to do that. I see that you set the font to be the system font of size 14 inside the 'drawRect:' method and there's a check happening to see if the KSToken instance has a superview and if the superview is of type KSTokenField then you use the same font of this tokenField. In my case, I use the method addToken on my tokenView and by debuggin the superview property inside KSToken it returns another object, so the font in my KSToken instances and my KSTokenView are different. It would be nice if there's a setter method maybe to set the font on any KSToken instance. Thank you!

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

No branches or pull requests

1 participant