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
*[Closures](#closures)
19
20
*[Types](#types)
@@ -210,6 +211,33 @@ class BoardLocation {
210
211
}
211
212
```
212
213
214
+
### Protocol Conformance
215
+
216
+
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