summaryrefslogtreecommitdiff
path: root/platform/darwin/docs/guides
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-01-08 16:35:51 -0800
committerMinh Nguyễn <mxn@1ec5.org>2017-01-09 01:38:20 -0800
commit1ae84db9789e638aaec0cd13c6921eb8a3503641 (patch)
treeaf14653c65033f7fb5ed863ba87bb01e0510ba07 /platform/darwin/docs/guides
parent2a9f883239acef0dd8ed34b5dc1bf29c86858a25 (diff)
downloadqtlocation-mapboxgl-1ae84db9789e638aaec0cd13c6921eb8a3503641.tar.gz
[ios, macos] Clarified CGVector, NS/UIEdgeInsets accessors
Diffstat (limited to 'platform/darwin/docs/guides')
-rw-r--r--platform/darwin/docs/guides/For Style Authors.md.ejs12
1 files changed, 9 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 4ead778c03..c1e2a18d84 100644
--- a/platform/darwin/docs/guides/For Style Authors.md.ejs
+++ b/platform/darwin/docs/guides/For Style Authors.md.ejs
@@ -261,7 +261,8 @@ you want the attribute to be set to.
In contrast to the JSON type that the style specification defines for each
layout or paint property, the style value object often contains a more specific
Foundation or Cocoa type. General rules for attribute types are listed below.
-Pay close attention to the SDK documentation for the attribute you want to set.
+Pay close attention to the SDK documentation for the attribute you want to get
+or set.
In style JSON | In Objective-C | In Swift
--------------|-----------------------|---------
@@ -272,8 +273,13 @@ Boolean | `NSNumber.boolValue` | `NSNumber.boolValue`
Number | `NSNumber.floatValue` | `NSNumber.floatValue`
Array (`-dasharray`) | `NSArray<NSNumber>` | `[NSNumber]`
Array (`-font`) | `NSArray<NSString>` | `[String]`
-Array (`-offset`, `-translate`) | `CGVector` | `CGVector`
-Array (`-padding`) | `<%- cocoaPrefix %>EdgeInsets` | `<%- cocoaPrefix %>EdgeInsets`
+<% if (iOS) { -%>
+Array (`-offset`, `-translate`) | `NSValue.CGVectorValue` | `NSValue.cgVectorValue`
+Array (`-padding`) | `NSValue.UIEdgeInsetsValue` | `NSValue.uiEdgeInsetsValue`
+<% } else { -%>
+Array (`-offset`, `-translate`) | `NSValue` containing `CGVector` | `NSValue` containing `CGVector`
+Array (`-padding`) | `NSValue.edgeInsetsValue` | `NSValue.edgeInsetsValue`
+<% } -%>
## Filtering sources