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 | |
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')
-rw-r--r-- | platform/darwin/docs/guides/For Style Authors.md.ejs | 6 | ||||
-rw-r--r-- | platform/darwin/docs/guides/Working with GeoJSON Data.md | 6 |
2 files changed, 6 insertions, 6 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` diff --git a/platform/darwin/docs/guides/Working with GeoJSON Data.md b/platform/darwin/docs/guides/Working with GeoJSON Data.md index adaf053e41..2d86b27bb4 100644 --- a/platform/darwin/docs/guides/Working with GeoJSON Data.md +++ b/platform/darwin/docs/guides/Working with GeoJSON Data.md @@ -93,7 +93,7 @@ types when they occur as feature identifiers or property values: GeoJSON data type | Objective-C representation | Swift representation -------------------|----------------------------|--------------------- `null` | `NSNull` | `NSNull` -`true`, `false` | `NSNumber.boolValue` | `NSNumber.boolValue` -Integer | `NSNumber.unsignedLongLongValue`, `NSNumber.longLongValue` | `NSNumber.uint64Value`, `NSNumber.int64Value` -Floating-point number | `NSNumber.doubleValue` | `NSNumber.doubleValue` +`true`, `false` | `NSNumber.boolValue` | `Bool` +Integer | `NSNumber.unsignedLongLongValue`, `NSNumber.longLongValue` | `UInt64`, `Int64` +Floating-point number | `NSNumber.doubleValue` | `Double` String | `NSString` | `String` |