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

Normal text color of LabelSegment #80

Open
soleilpqd opened this issue Aug 28, 2018 · 0 comments
Open

Normal text color of LabelSegment #80

soleilpqd opened this issue Aug 28, 2018 · 0 comments

Comments

@soleilpqd
Copy link

Hi,

I'm using BetterSegmentedControl in Storyboard as a custom view with indicatorViewBackgroundColor as blue. I made an extension to make segments just from Stroryboard input box:

extension BetterSegmentedControl {
   @IBInspectable var titles: String? {
    get {
        ....
    }
    set (value) {
        // make array of string from value by components(separatedBy: "\n")
        // then make an array of LabelSegment with custom normalTextColor (gray) and selectedTextColor (white)
    }
}

The problem: in run-time the normal title text is blue (as indicatorViewBackgroundColor that I set in Storyboard).
Any suggestion?

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