Skip to content

Commit ed64989

Browse files
committed
Initialization fix
1 parent a4e1d06 commit ed64989

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed
Binary file not shown.

OGSwitch/OGSwitch/OGSwitch.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,12 @@ import QuartzCore
117117
setup()
118118
}
119119

120-
override public func awakeFromNib() {
121-
super.awakeFromNib()
122-
reloadLayerSize()
123-
reloadLayer()
124-
setupIcon()
125-
}
126-
127120
internal func setup() {
128121
isEnabled = true
129122
setupLayers()
123+
reloadLayerSize()
124+
reloadLayer()
125+
setupIcon()
130126
}
131127

132128
public func setOn(isOn: Bool, animated: Bool) {

0 commit comments

Comments
 (0)