Skip to content

Commit c3b326e

Browse files
committed
Update colors when appearance changes
1 parent 2f8dffd commit c3b326e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

TactileSlider/Classes/TactileSlider.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ import UIKit
328328

329329
// MARK: - Graphics
330330

331+
open override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
332+
renderer.trackBackground = trackBackground
333+
renderer.thumbTint = thumbTint
334+
}
335+
331336
override open func layoutSubviews() {
332337
super.layoutSubviews()
333338
self.setNeedsDisplay()

0 commit comments

Comments
 (0)