diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2017-01-21 18:22:19 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-01-23 15:19:48 -0800 |
commit | b32c17119e5b046aab796a29e321759095a0959b (patch) | |
tree | 7f2ee180d98205b1146044b0bb3f9d7480fc624d /platform/darwin/docs | |
parent | 5a2bb8d2409b0edf53c514dd5da02e34705d67fa (diff) | |
download | qtlocation-mapboxgl-b32c17119e5b046aab796a29e321759095a0959b.tar.gz |
[ios] EdgeInsets is UIEdgeInsets in Swift on iOS
Diffstat (limited to 'platform/darwin/docs')
-rw-r--r-- | platform/darwin/docs/guides/For Style Authors.md.ejs | 12 |
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 d1cbfff4f5..ee13aa1130 100644 --- a/platform/darwin/docs/guides/For Style Authors.md.ejs +++ b/platform/darwin/docs/guides/For Style Authors.md.ejs @@ -282,9 +282,15 @@ Array (`-padding`) | `NSValue.edgeInsetsValue` | `NSValue.edgeInsetsValue` <% } -%> For padding attributes, note that the arguments to -`<%- cocoaPrefix %>EdgeInsetsMake()` in Objective-C and -`EdgeInsets(top:left:bottom:right:)` in Swift are specified in counterclockwise -order, in contrast to the clockwise order defined by the style specification. +<% if (iOS) { -%> +`UIEdgeInsetsMake()` in Objective-C and `UIEdgeInsets(top:left:bottom:right:)` +in Swift +<% } else { -%> +`NSEdgeInsetsMake()` in Objective-C and `EdgeInsets(top:left:bottom:right:)` in +Swift +<% } -%> +are specified in counterclockwise order, in contrast to the clockwise order +defined by the style specification. <% if (macOS) { -%> Additionally, on macOS, a screen coordinate of (0, 0) is located at the |