import RxSwift

public extension Sugar where HostType: UISwitch {
	/**
	RxSugar wrapper for on property.
	*/
    public var on: ValueBinding<Bool> {
        return controlValueBinding(
            valueChangeEventTypes: .ValueChanged,
            getter: { $0.on },
            setter: { $0.on = $1 })
    }
}
import RxSwift

public extension Sugar where HostType: UISwitch {
	/**
	RxSugar wrapper for on property.
	*/
    public var on: ValueBinding<Bool> {
        return controlValueBinding(
            valueChangeEventTypes: .ValueChanged,
            valueGetter: { $0.on },
            valueSetter: { control, value in
                control.on = value
        })
    }
}
--- 
+++ 
@@ -7,9 +7,7 @@
     public var on: ValueBinding<Bool> {
         return controlValueBinding(
             valueChangeEventTypes: .ValueChanged,
-            valueGetter: { $0.on },
-            valueSetter: { control, value in
-                control.on = value
-        })
+            getter: { $0.on },
+            setter: { $0.on = $1 })
     }
 }
Update UISwitch to use updated ValueBinding
