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

pageSegmentedControl background color is not working in iOS 13 + #52

Open
leocallas opened this issue Jul 11, 2020 · 1 comment
Open

Comments

@leocallas
Copy link

pageSegmentedControl background color setting to white or clear color not working and keeps setting gray, but other colors are working somehow.

@pauljarysta
Copy link

@leocallas you can override layoutSubview() and choose which backgroundColor you want :

extension DTSegmentedControl {
    open override func layoutSubviews() {
        super.layoutSubviews()    
        for i in 0...subviews.count - 1 {
            subviews[i].backgroundColor = .white
        }
    }
}

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

2 participants