Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Highlighted content background gradient #8

Open
rahulpatle101 opened this issue Feb 21, 2016 · 1 comment
Open

Highlighted content background gradient #8

rahulpatle101 opened this issue Feb 21, 2016 · 1 comment

Comments

@rahulpatle101
Copy link

Hello,

Is it possible to make the highlighted content have a gradient background. Also, can I change the highlighted font to bold?

thanks!

@xaviermerino
Copy link
Owner

It would be easy to implement the gradient background if you modify the code that sets up the UIView background color within the segmented control. Here is a link on how to do it. . It is also possible to make the highlighted font bold, the easy fix would be changing the font property to a bold version after the press is registered and then manually changing it back (you can do that in the delegate methods you define.. but this is quite a dirty fix). The best way to do it would be expanding the class to have a highlightedFont property and whenever there is a press, use that one instead and reset all the other segments to the regular font.

Sorry i didn't reply on time. I was not aware of this issue.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants