Skip to content

Commit 93f77d6

Browse files
committed
Add method to update title with symbol
1 parent c24452d commit 93f77d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Pinwheel/Sources/Pinwheel/Components/Button.swift

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public class Button: UIButton {
4141
}
4242
}
4343

44+
public func setTitle(title: String, symbol: String) {
45+
self.title = title
46+
addSymbolToTitle(symbol: symbol)
47+
}
48+
4449
public override var isEnabled: Bool {
4550
didSet {
4651
UIView.transition(with: self, duration: 0.2, options: .transitionCrossDissolve, animations: {

0 commit comments

Comments
 (0)