Skip to content

Commit 047205a

Browse files
committed
Default ratio off
1 parent ed64989 commit 047205a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Binary file not shown.

OGSwitch/OGSwitch/OGSwitch.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ import QuartzCore
6868
reloadLayer()
6969
}
7070
}
71-
@IBInspectable public var ignoreRatio: Bool = false {
71+
@IBInspectable public var ignoreRatio: Bool = true {
7272
didSet {
7373
reloadLayer()
7474
}
@@ -121,10 +121,10 @@ import QuartzCore
121121
isEnabled = true
122122
setupLayers()
123123
reloadLayerSize()
124-
reloadLayer()
125124
setupIcon()
125+
reloadLayer()
126126
}
127-
127+
128128
public func setOn(isOn: Bool, animated: Bool) {
129129
if self.isOn != isOn {
130130
self.isOn = isOn

0 commit comments

Comments
 (0)