Skip to content

Commit ca51b03

Browse files
authored
[Docs] Update firebase-api-guidelines.md (#14360)
1 parent ff3acfb commit ca51b03

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/firebase-api-guidelines.md

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ introduces strict concurrency checking and enforces Sendable types in
5454
asynchronous code. If applicable, new APIs should be Sendable and designed to be
5555
used in an async context (e.g. `Task`).
5656

57+
### Access Control
58+
59+
New Swift APIs should use the `public` access level over `open`. The `open`
60+
access level allows for subclasses to override the API.
61+
62+
Additionally, new Swift classes should be `final` to prevent clients from
63+
subclassing, unless otherwise justified.
64+
5765
### API Availability
5866

5967
By design, an API may not be available on a given Apple platform. Swift supports

0 commit comments

Comments
 (0)