Skip to content

Commit

Permalink
Merge pull request #287 from yo1995/patch-1
Browse files Browse the repository at this point in the history
Fix: Limit the scope of operator
  • Loading branch information
kciter authored Jul 11, 2020
2 parents b5a24d3 + 20a44dd commit 6fab047
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/FloatyItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ open class FloatyItem: UIView {
}
}

func + (left: CGPoint, right: CGPoint) -> CGPoint {
return CGPoint(x: left.x + right.x, y: left.y + right.y)
private extension CGPoint {
static func + (left: CGPoint, right: CGPoint) -> CGPoint {
return CGPoint(x: left.x + right.x, y: left.y + right.y)
}
}

0 comments on commit 6fab047

Please sign in to comment.