[ios, macos] Note reversed order in NS/UIEdgeInsets
This commit is contained in:
committed by
Minh Nguyễn
parent
1ae84db978
commit
a5e43f0272
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user