Skip to content

Commit

Permalink
Solve lib lint failure
Browse files Browse the repository at this point in the history
Summary:
This diff solves `pod lib lint` failure.

We want to make a new yoga release, as I landed some changes in its podspec which solves the broken flipper build for xcode 11.

{F221612119}

Reviewed By: passy

Differential Revision: D18382588

fbshipit-source-id: efddfa3e93ca59b79b887d04f83407b004d9a199
  • Loading branch information
priteshrnandgaonkar authored and facebook-github-bot committed Nov 8, 2019
1 parent ddf748a commit 0be0e9f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions YogaKit/Source/YGLayoutExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import yoga;
postfix operator %

extension Int {
Expand All @@ -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)
}
Expand Down

0 comments on commit 0be0e9f

Please sign in to comment.