Skip to content

Commit

Permalink
Update colors when appearance changes
Browse files Browse the repository at this point in the history
  • Loading branch information
daprice committed Apr 30, 2020
1 parent 2f8dffd commit c3b326e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TactileSlider/Classes/TactileSlider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ import UIKit

// MARK: - Graphics

open override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
renderer.trackBackground = trackBackground
renderer.thumbTint = thumbTint
}

override open func layoutSubviews() {
super.layoutSubviews()
self.setNeedsDisplay()
Expand Down

0 comments on commit c3b326e

Please sign in to comment.