Skip to content

Commit

Permalink
Added tintColorDidChange handler (#83)
Browse files Browse the repository at this point in the history
For use when dynamically changing the UIView
  • Loading branch information
alexkafer authored and thii committed Jul 27, 2016
1 parent 3043575 commit e6fd79f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FontAwesome/FontAwesomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ import UIKit
self.addSubview(iconView)
}

override func tintColorDidChange() {
iconView.textColor = self.tintColor
}

override func layoutSubviews() {
super.layoutSubviews()
self.clipsToBounds = true
Expand Down

0 comments on commit e6fd79f

Please sign in to comment.