- support Swift4
- support xib/storybord
- highlight effect
- customizable
- draggable
- easy to use
let mySwitch = DXSwitch.init(frame: CGRect.init(x: 200, y: 200, width: 80, height: 40))
mySwitch.valueChangeBlock = { value in
print(value)
}
view.addSubview(mySwitch)