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
{{ message }}
This repository was archived by the owner on May 20, 2026. It is now read-only.
In our generated documentation, the top-level pages for extensions look very sparse. Like this:
By adding documentation comments to public extensions, we could improve the readability of both the source code and the generated documentation. The documentation shown above with extension comments added, becomes this:
Task
Add documentation comments to the following public extensions:
Unify how we declare these extensions: move the public declaration to the extension itself and remove it from the individual public methods (any properties/methods declared as internal/private need to remain so) Do this only for the extensions you document in Step 1 above
AC
Task (above) completed
0 SwiftLint violations
compiles with 0 warnings for iOS and tvOS
unit tests pass for iOS and tvOS
100% documentation coverage as per Jazzy
Discussion
Jazzy combines all extended properties / methods from multiple extensions into a single documentation page. e.g. for UIColor we have 8 properties / methods spread across 5 separate extensions but they are all documented together on a single page. In this case Jazzy will not generate documentation for the extension (how would it know to combine the comments from the 5 extensions?). Documenting the extensions still has value though, but for now we will focus on classes that only have a single extension in our package. In a later ticket we can document the multiple extensions for UIColor, UIView, etc.
Intro
In our generated documentation, the top-level pages for extensions look very sparse. Like this:

By adding documentation comments to public extensions, we could improve the readability of both the source code and the generated documentation. The documentation shown above with extension comments added, becomes this:

Task
Foundation/CGFloat+rounded.swiftFoundation/CGSize+inset.swiftFoundation/String+Localizable.swiftUIKit/UIScreen+scaleFactor.swiftUIKit/UITraitCollection+colorSpaces.swiftUIKit/UIView+constrainEdges.swift(NSDirectionalRectEdgeextension only)publicdeclaration to the extension itself and remove it from the individualpublicmethods (any properties/methods declared asinternal/privateneed to remain so) Do this only for the extensions you document in Step 1 aboveAC
Discussion
Jazzy combines all extended properties / methods from multiple extensions into a single documentation page. e.g. for
UIColorwe have 8 properties / methods spread across 5 separate extensions but they are all documented together on a single page. In this case Jazzy will not generate documentation for the extension (how would it know to combine the comments from the 5 extensions?). Documenting the extensions still has value though, but for now we will focus on classes that only have a single extension in our package. In a later ticket we can document the multiple extensions forUIColor,UIView, etc.