Skip to content

Commit

Permalink
Public inits
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarGroth committed Aug 8, 2018
1 parent 79209bc commit a4e1d06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file not shown.
6 changes: 5 additions & 1 deletion OGSwitch/OGSwitch/OGSwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ import QuartzCore
setup()
}

override init(frame:NSRect) {
convenience public init(size: CGSize) {
self.init(frame: NSRect(origin: .zero, size: size))
}

override public init(frame:NSRect) {
super.init(frame: frame);
setup()
}
Expand Down

0 comments on commit a4e1d06

Please sign in to comment.