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
Copy file name to clipboardExpand all lines: proposals/0033-import-objc-constants.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ public let HKQuantityTypeIdentifierLeanBodyMass: String
35
35
36
36
The aim of this proposal is to encapsulate these strings into an `enum` or a `struct` that conforms to `RawRepresentable` to represent as type `String`. Why bother? When these APIs are used, the methods that use the constants simply take `NSString` parameters where these constants are to be used, such as the methods listed below. For a novice programmer, it’s not immediately clear that these methods take “special” values defined in another file altogether:
0 commit comments