diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-01-12 09:33:28 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-01-12 11:03:20 -0800 |
commit | f1d661ad36923a12c231b4846c9bf4416551860d (patch) | |
tree | e8d21a647a42a61f0e5a89dd34d026d3aea8b881 /platform/darwin/docs/guides/For Style Authors.md.ejs | |
parent | 13243ba26b9e5206dea76a84d9a41fa5e1cd6383 (diff) | |
download | qtlocation-mapboxgl-f1d661ad36923a12c231b4846c9bf4416551860d.tar.gz |
[ios, macos] Document simpler types for style values in Swift
Diffstat (limited to 'platform/darwin/docs/guides/For Style Authors.md.ejs')
-rw-r--r-- | platform/darwin/docs/guides/For Style Authors.md.ejs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/docs/guides/For Style Authors.md.ejs b/platform/darwin/docs/guides/For Style Authors.md.ejs index 6d1e11c7c5..3d775c8a89 100644 --- a/platform/darwin/docs/guides/For Style Authors.md.ejs +++ b/platform/darwin/docs/guides/For Style Authors.md.ejs @@ -269,9 +269,9 @@ In style JSON | In Objective-C | In Swift Color | `<%- cocoaPrefix %>Color` | `<%- cocoaPrefix %>Color` 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]` <% if (iOS) { -%> Array (`-offset`, `-translate`) | `NSValue.CGVectorValue` | `NSValue.cgVectorValue` |