UISwitch, something similar for Mac?

后端 未结 7 1591
一整个雨季
一整个雨季 2021-01-31 12:16

Im sure most of you are familiar with the UISwitch on iOS. Is their any existing project trying to implement something like this on Mac? If not, where would one sta

相关标签:
7条回答
  • 2021-01-31 12:24

    You could use Peter Hosey’s PRHOnOffButton.

    0 讨论(0)
  • 2021-01-31 12:28

    I think you should use NSCheckBox since it is the equivalent on a computer where you use a mouse and not your finger.

    0 讨论(0)
  • 2021-01-31 12:29

    ITSwitch requires no images, integrates with Interface Builder and has lovely (modern) animations:

    https://github.com/iluuu1994/ITSwitch

    Recommended.

    0 讨论(0)
  • 2021-01-31 12:33

    I've used the Mondo Switch that's part of the Cocoa Mondo Kit. It works pretty well.

    0 讨论(0)
  • 2021-01-31 12:43

    For anyone that comes across this question in the future, I have developed a UISwitch for Mac (MacToggle) Swift 3 & AutoLayout

    https://github.com/RichAppz/MacToggle

    It's a replica of the iOS UISwitch and fully customisable.

    Enjoy

    0 讨论(0)
  • 2021-01-31 12:48

    I recently extended Peter Hosey's PRHOnOffButton to add iOS-like background colors and labels. Since mine is derived, it may or may not have the same caveat described above by Peter.

    enter image description here

    0 讨论(0)
提交回复
热议问题