You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Classes and Structures](#classes-and-structures)
16
16
*[Use of Self](#use-of-self)
17
+
*[Protocol Conformance](#protocol-conformance)
17
18
*[Function Declarations](#function-declarations)
18
19
*[Closure Expressions](#closure-expressions)
19
20
*[Types](#types)
@@ -220,6 +221,33 @@ class BoardLocation {
220
221
}
221
222
```
222
223
224
+
### Protocol Conformance
225
+
226
+
When adding protocol conformance to a class, prefer adding a separate class extension for the protocol methods. This keeps the related methods grouped together with the protocol and can simplify instructions to add a protocol to a class with its associated methods.
0 commit comments