Commit 4f72b9fa by Daniel Dahan

development: added convenience image property to Button

parent fb0a00be
......@@ -76,6 +76,7 @@ open class Button: UIButton {
}
/// Sets the normal and highlighted image for the button.
@IBInspectable
open var image: UIImage? {
didSet {
setImage(image, for: .normal)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment