We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c0822f commit 96e6febCopy full SHA for 96e6feb
Sources/Swift/Percent.swift
@@ -24,6 +24,7 @@ public struct FPercent {
24
}
25
26
postfix operator %
27
+
28
public postfix func % (v: CGFloat) -> FPercent {
29
return FPercent(value: v)
30
Sources/Swift/YGLayoutExtensions.swift
@@ -11,8 +11,6 @@ import CoreGraphics
11
import FlexLayoutYoga
12
#endif
13
14
-postfix operator %
15
-
16
extension Int {
17
public static postfix func %(value: Int) -> YGValue {
18
return YGValue(value: Float(value), unit: .percent)
0 commit comments