Skip to content

Commit

Permalink
Default ratio off
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarGroth committed Aug 8, 2018
1 parent ed64989 commit 047205a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file not shown.
6 changes: 3 additions & 3 deletions OGSwitch/OGSwitch/OGSwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import QuartzCore
reloadLayer()
}
}
@IBInspectable public var ignoreRatio: Bool = false {
@IBInspectable public var ignoreRatio: Bool = true {
didSet {
reloadLayer()
}
Expand Down Expand Up @@ -121,10 +121,10 @@ import QuartzCore
isEnabled = true
setupLayers()
reloadLayerSize()
reloadLayer()
setupIcon()
reloadLayer()
}

public func setOn(isOn: Bool, animated: Bool) {
if self.isOn != isOn {
self.isOn = isOn
Expand Down

0 comments on commit 047205a

Please sign in to comment.