Skip to content

Commit

Permalink
Initialization fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarGroth committed Aug 8, 2018
1 parent a4e1d06 commit ed64989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Binary file not shown.
10 changes: 3 additions & 7 deletions OGSwitch/OGSwitch/OGSwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,12 @@ import QuartzCore
setup()
}

override public func awakeFromNib() {
super.awakeFromNib()
reloadLayerSize()
reloadLayer()
setupIcon()
}

internal func setup() {
isEnabled = true
setupLayers()
reloadLayerSize()
reloadLayer()
setupIcon()
}

public func setOn(isOn: Bool, animated: Bool) {
Expand Down

0 comments on commit ed64989

Please sign in to comment.