[ios] EdgeInsets is UIEdgeInsets in Swift on iOS
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -275,9 +275,10 @@ Array (`-offset`, `-translate`) | `NSValue.CGVectorValue` | `NSValue.cgVectorVal
|
||||
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.
|
||||
`UIEdgeInsetsMake()` in Objective-C and `UIEdgeInsets(top:left:bottom:right:)`
|
||||
in Swift
|
||||
are specified in counterclockwise order, in contrast to the clockwise order
|
||||
defined by the style specification.
|
||||
|
||||
## Filtering sources
|
||||
|
||||
|
||||
@@ -263,9 +263,10 @@ Array (`-offset`, `-translate`) | `NSValue` containing `CGVector` | `NSValue` co
|
||||
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.
|
||||
`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.
|
||||
|
||||
Additionally, on macOS, a screen coordinate of (0, 0) is located at the
|
||||
lower-left corner of the screen. Therefore, a positive `CGVector.dy` means an
|
||||
|
||||
Reference in New Issue
Block a user