Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 case 语句或函数的 if-else 语句中使用 materialkit 开关?似乎 UIcontrol 和 Material Kit 有两种不同的语法。
对于Material,它是这样的。
let materialSwitch = MaterialSwitch() if .On == materialSwitch.switchState { // Do something } else { // Do something else.... }