polqf / TwicketSegmentedControl

Custom UISegmentedControl replacement for iOS, written in Swift
MIT License
1.76k stars 176 forks source link

segmentsBackgroundColor cannot be changed #12

Closed roopeshmittal closed 7 years ago

roopeshmittal commented 7 years ago

Looks like this will never be set to a new value as its always set to background color in setter

open var segmentsBackgroundColor: UIColor = Palette.segmentedControlBackgroundColor {
        didSet {
            backgroundView.backgroundColor = backgroundColor
        }
    }
polqf commented 7 years ago

Sorry about that issue. This has been fixed in https://github.com/twicketapp/TwicketSegmentedControl/pull/10