Skip to content

Commit

Permalink
Fixed Button image
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyclaysmith committed Mar 12, 2015
1 parent 9388259 commit 8d93111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AwfulBindingUI/BindableButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public class BindableButton:UIButton{
self.hidden = newValue
}

//TODO: segment by control state
private var _imageBinding:BindableValue<UIImage?>?

public var imageBinding:BindableValue<UIImage?>?{
get{
return _imageBinding
Expand All @@ -73,6 +73,6 @@ public class BindableButton:UIButton{
}

private func imageBinding_valueChanged(newValue:UIImage?){
self.imageView?.image = newValue
self.setImage(newValue, forState: UIControlState.Normal)
}
}

0 comments on commit 8d93111

Please sign in to comment.