Hi I was wondering if i could get some suggestions on this:
extension CGPoint : Comparable
static func <(l: CGPoint, r: CGPoint) ->
static func ==(l: CGPoint, r: CGPoint) ->
CGPoint is a Core graphics struct.
This code gives me an error "Declaration is only valid at file scope". However per swift documentation, I cannot add an access modifier to extensions that adopt protocols. I was wondering if there is an elegant workaround for this limitation or if there's something I'm missing here.