[ios, macos] Note reversed order in NS/UIEdgeInsets

This commit is contained in:
Minh Nguyễn
2017-01-08 16:51:41 -08:00
committed by Minh Nguyễn
parent 1ae84db978
commit a5e43f0272
3 changed files with 15 additions and 0 deletions

View File

@@ -281,6 +281,11 @@ Array (`-offset`, `-translate`) | `NSValue` containing `CGVector` | `NSValue` co
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.
## Filtering sources
You can filter a shape or vector source by setting the

View File

@@ -274,6 +274,11 @@ Array (`-font`) | `NSArray<NSString>` | `[String]`
Array (`-offset`, `-translate`) | `NSValue.CGVectorValue` | `NSValue.cgVectorValue`
Array (`-padding`) | `NSValue.UIEdgeInsetsValue` | `NSValue.uiEdgeInsetsValue`
For padding attributes, note that the arguments to
`UIEdgeInsetsMake()` 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.
## Filtering sources
You can filter a shape or vector source by setting the

View File

@@ -262,6 +262,11 @@ Array (`-font`) | `NSArray<NSString>` | `[String]`
Array (`-offset`, `-translate`) | `NSValue` containing `CGVector` | `NSValue` containing `CGVector`
Array (`-padding`) | `NSValue.edgeInsetsValue` | `NSValue.edgeInsetsValue`
For padding attributes, note that the arguments to
`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.
## Filtering sources
You can filter a shape or vector source by setting the