File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 88postfix operator %
99
1010extension Int {
11- public static postfix func % ( value: Int ) -> YGValue {
11+ public static postfix func % ( value: Int ) -> YGValue {
1212 return YGValue ( value: Float ( value) , unit: . percent)
1313 }
1414}
1515
1616extension Float {
17- public static postfix func % ( value: Float ) -> YGValue {
17+ public static postfix func % ( value: Float ) -> YGValue {
1818 return YGValue ( value: value, unit: . percent)
1919 }
2020}
2121
2222extension CGFloat {
23- public static postfix func % ( value: CGFloat ) -> YGValue {
23+ public static postfix func % ( value: CGFloat ) -> YGValue {
2424 return YGValue ( value: Float ( value) , unit: . percent)
2525 }
2626}
2727
28- extension YGValue : ExpressibleByIntegerLiteral , ExpressibleByFloatLiteral {
28+ extension YGValue : ExpressibleByIntegerLiteral , ExpressibleByFloatLiteral {
2929 public init ( integerLiteral value: Int ) {
3030 self = YGValue ( value: Float ( value) , unit: . point)
3131 }
You can’t perform that action at this time.
0 commit comments