let slideSwitch = YeraSlideSwitch.init(frame: CGRect.init(x: 100, y: 200, width: UIScreen.main.bounds.size.width - 200, height: (UIScreen.main.bounds.size.width - 200)*2))
slideSwitch.backgroundColor = UIColor.clear
self.view.addSubview(slideSwitch)
slideSwitch.setOnWithAnimate()slideSwitch.isOn()slideSwitch.setOn()
slideSwitch.setOff()slideSwitch.setOnWithAnimate()
slideSwitch.setOffWithAnimate()iOS8.0 and above
The switch in the homekit is large, up and down, moving elegantly and accurately judged. It is very suitable for a single switch with only one single page. It is impressive.
If you have any questions, please let me know
email:erlanov14@gmail.com
