Skip to content

Commit

Permalink
fixed issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
okmr-d committed Jul 21, 2015
1 parent 1ec1375 commit 8c88397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DOFavoriteButton/DOFavoriteButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import UIKit
@IBDesignable
public class DOFavoriteButton: UIButton {

@IBInspectable public var image: UIImage! = UIImage(named: "star", inBundle: NSBundle(forClass: DOFavoriteButton.self), compatibleWithTraitCollection: nil) {
@IBInspectable public var image: UIImage! {
didSet {
let frame = self.frame
let imageFrame = CGRectMake(frame.size.width / 2 - frame.size.width / 4, frame.size.height / 2 - frame.size.height / 4, frame.size.width / 2, frame.size.height / 2)
Expand Down

0 comments on commit 8c88397

Please sign in to comment.