We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed64989 commit 047205aCopy full SHA for 047205a
OGSwitch.xcworkspace/xcuserdata/oskar.xcuserdatad/UserInterfaceState.xcuserstate
150 Bytes
OGSwitch/OGSwitch/OGSwitch.swift
@@ -68,7 +68,7 @@ import QuartzCore
68
reloadLayer()
69
}
70
71
- @IBInspectable public var ignoreRatio: Bool = false {
+ @IBInspectable public var ignoreRatio: Bool = true {
72
didSet {
73
74
@@ -121,10 +121,10 @@ import QuartzCore
121
isEnabled = true
122
setupLayers()
123
reloadLayerSize()
124
- reloadLayer()
125
setupIcon()
+ reloadLayer()
126
127
-
+
128
public func setOn(isOn: Bool, animated: Bool) {
129
if self.isOn != isOn {
130
self.isOn = isOn
0 commit comments