We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80b5ec3 commit cdec68cCopy full SHA for cdec68c
Source/Query.swift
@@ -76,6 +76,15 @@ import Foundation
76
// allows Swift users to leverage the full type safety of enums (at the price
77
// of a little confusion).
78
//
79
+// ## The case of structs
80
+//
81
+// Auxiliary types used for query parameters, like `LatLng` or `GeoRect`, have
82
+// value semantics. However, structs are not bridgeable to Objective-C. Therefore
83
+// we use plain classes (inheriting from `NSObject`) and we make them immutable.
84
85
+// Equality comparison is implemented in those classes only for the sake of
86
+// testability (we use comparisons extensively in unit tests).
87
88
// ## Annotations
89
90
// Properties and methods visible in Objective-C are annotated with `@objc`.
0 commit comments