Skip to content

Commit 4e13fe5

Browse files
committed
feat: add availability to support concurrency
1 parent 73a2461 commit 4e13fe5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Firestore/Swift/Source/Codable/CollectionReference+WriteEncodable.swift

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public extension CollectionReference {
5555
/// - encoder: An encoder instance to use to run the encoding.
5656
/// - Throws: `Error` if the backend rejected the write.
5757
/// - Returns: A `DocumentReference` pointing to the newly created document.
58+
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
5859
@discardableResult
5960
func addDocument<T: Encodable>(from value: T,
6061
encoder: Firestore.Encoder = Firestore.Encoder()) async throws

0 commit comments

Comments
 (0)