diff --git a/YogaKit/Source/YGLayoutExtensions.swift b/YogaKit/Source/YGLayoutExtensions.swift index 812f845524..2157c0ffbc 100644 --- a/YogaKit/Source/YGLayoutExtensions.swift +++ b/YogaKit/Source/YGLayoutExtensions.swift @@ -5,6 +5,7 @@ * LICENSE file in the root directory of this source tree. */ +import yoga; postfix operator % extension Int { @@ -29,15 +30,15 @@ extension YGValue : ExpressibleByIntegerLiteral, ExpressibleByFloatLiteral { public init(integerLiteral value: Int) { self = YGValue(value: Float(value), unit: .point) } - + public init(floatLiteral value: Float) { self = YGValue(value: value, unit: .point) } - + public init(_ value: Float) { self = YGValue(value: value, unit: .point) } - + public init(_ value: CGFloat) { self = YGValue(value: Float(value), unit: .point) }