Skip to content

Commit

Permalink
Exposing border width
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarGroth committed Aug 6, 2016
1 parent c2579df commit b1b7486
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "FlatButton/FlatButton.swift"
timestampString = "492168310.408378"
timestampString = "492171566.138353"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "167"
endingLineNumber = "167"
startingLineNumber = "172"
endingLineNumber = "172"
landmarkName = "FlatButton"
landmarkType = "3">
</BreakpointContent>
Expand Down
5 changes: 5 additions & 0 deletions FlatButton/FlatButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public class FlatButton: NSButton {
layer?.cornerRadius = cornerRadius
}
}
@IBInspectable public var borderWidth: CGFloat = 1 {
didSet {
layer?.borderWidth = borderWidth
}
}
@IBInspectable public var color: NSColor = NSColor.blueColor() {
didSet {
alternateColor = tintColor(color)
Expand Down

0 comments on commit b1b7486

Please sign in to comment.