From 94921c334c89550602726c78ce9a5421aba884ed Mon Sep 17 00:00:00 2001 From: Szymon Tolkachov Date: Tue, 3 Jan 2017 11:15:23 +0100 Subject: [PATCH 1/3] Display segments background color correctly --- TwicketSegmentedControl/TwicketSegmentedControl.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwicketSegmentedControl/TwicketSegmentedControl.swift b/TwicketSegmentedControl/TwicketSegmentedControl.swift index 8d206d9..d00133a 100644 --- a/TwicketSegmentedControl/TwicketSegmentedControl.swift +++ b/TwicketSegmentedControl/TwicketSegmentedControl.swift @@ -77,7 +77,7 @@ open class TwicketSegmentedControl: UIControl { open var segmentsBackgroundColor: UIColor = Palette.segmentedControlBackgroundColor { didSet { - backgroundView.backgroundColor = backgroundColor + backgroundView.backgroundColor = segmentsBackgroundColor } } From ceb2a44ae0b83b0b1022d289f96f4efc294986e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Da=20Costa=20Faro=20R=C3=A9my?= Date: Sat, 7 Jan 2017 16:15:21 -0500 Subject: [PATCH 2/3] Correct a small mistake in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 316d570..a6b2379 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ __highlightTextColor__: UIColor - Text color for selected segment __segmentsBackgroundColor__: UIColor - Background color for unselected segments -__highlightTextColor__: UIColor - Background color for selected segment +__sliderBackgroundColor__: UIColor - Background color for selected segment ###Installation: ####• CocoaPods From 9c8c2f2b3c63238124e78abbd1c397701b0e9cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Da=20Costa=20Faro=20R=C3=A9my?= Date: Sat, 7 Jan 2017 16:27:05 -0500 Subject: [PATCH 3/3] Update a small mistake in TwicketSegmentedControl.swift This commit allow to change the slider background color AND the slider shawdow. --- TwicketSegmentedControl/TwicketSegmentedControl.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/TwicketSegmentedControl/TwicketSegmentedControl.swift b/TwicketSegmentedControl/TwicketSegmentedControl.swift index d00133a..0f3c9d6 100644 --- a/TwicketSegmentedControl/TwicketSegmentedControl.swift +++ b/TwicketSegmentedControl/TwicketSegmentedControl.swift @@ -84,6 +84,7 @@ open class TwicketSegmentedControl: UIControl { open var sliderBackgroundColor: UIColor = Palette.sliderColor { didSet { selectedContainerView.backgroundColor = sliderBackgroundColor + selectedContainerView.addShadow(with: sliderBackgroundColor) } }