Skip to content

Setting KSToken font property #108

@mohammedsafwat

Description

@mohammedsafwat

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions