summaryrefslogtreecommitdiff
path: root/platform/ios/docs/guides
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-01-12 09:33:28 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-01-12 11:03:20 -0800
commitf1d661ad36923a12c231b4846c9bf4416551860d (patch)
treee8d21a647a42a61f0e5a89dd34d026d3aea8b881 /platform/ios/docs/guides
parent13243ba26b9e5206dea76a84d9a41fa5e1cd6383 (diff)
downloadqtlocation-mapboxgl-f1d661ad36923a12c231b4846c9bf4416551860d.tar.gz
[ios, macos] Document simpler types for style values in Swift
Diffstat (limited to 'platform/ios/docs/guides')
-rw-r--r--platform/ios/docs/guides/For Style Authors.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/ios/docs/guides/For Style Authors.md b/platform/ios/docs/guides/For Style Authors.md
index 4a49939d4f..753eb7200c 100644
--- a/platform/ios/docs/guides/For Style Authors.md
+++ b/platform/ios/docs/guides/For Style Authors.md
@@ -267,9 +267,9 @@ In style JSON | In Objective-C | In Swift
Color | `UIColor` | `UIColor`
Enum | `NSValue` (see `NSValue(MGLAdditions)`) | `NSValue` (see `NSValue(MGLAdditions)`)
String | `NSString` | `String`
-Boolean | `NSNumber.boolValue` | `NSNumber.boolValue`
-Number | `NSNumber.floatValue` | `NSNumber.floatValue`
-Array (`-dasharray`) | `NSArray<NSNumber>` | `[NSNumber]`
+Boolean | `NSNumber.boolValue` | `Bool`
+Number | `NSNumber.floatValue` | `Float`
+Array (`-dasharray`) | `NSArray<NSNumber>` | `[Float]`
Array (`-font`) | `NSArray<NSString>` | `[String]`
Array (`-offset`, `-translate`) | `NSValue.CGVectorValue` | `NSValue.cgVectorValue`
Array (`-padding`) | `NSValue.UIEdgeInsetsValue` | `NSValue.uiEdgeInsetsValue`