Skip to content

Commit

Permalink
Added conformity to Printable
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Miller committed Jun 6, 2014
1 parent bce06cb commit b36e240
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
xcuserdata/
profile
*.moved-aside
DerivedData
Expand Down
9 changes: 9 additions & 0 deletions ENMBadgedBarButtonItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,12 @@ extension ENMBadgedBarButtonItem {
badgeOriginX = self.customView.frame.size.width - badgeLabel.frame.size.width/2
}
}

extension ENMBadgedBarButtonItem: Printable {

override var description: String {
get {
return "Bar button badge has a value of \(badgeValue)"
}
}
}
Binary file not shown.

0 comments on commit b36e240

Please sign in to comment.