![Hands-On Design Patterns with Swift](https://wfqqreader-1252317822.image.myqcloud.com/cover/72/36699072/b_36699072.jpg)
上QQ阅读APP看书,第一时间看更新
Conforming to a protocol
We have just declared this new toggling protocol. If we go back to the previous section about enums, you may remember that the State enum had a toggle() method. We can now declare that our enum, State, conforms to Toggling. As mentioned previously, we have many ways to declare our conformance.