swift-server / swift-prometheus

Prometheus client library for Swift
https://swiftpackageindex.com/swift-server/swift-prometheus
Apache License 2.0
145 stars 31 forks source link

Prevent the compiler finding the wrong CGFloat #34

Closed matiasvillaverde closed 4 years ago

matiasvillaverde commented 4 years ago

As open on this Issue, this small PR allows to use the library on iOS, WatchOS and tvOS.

Checklist

Motivation and Context

Then we can use the library on iOS, the issue is this one

Description

Adding a compiler flag, to import CoreGraphics will fix the compiler getting crazy of which CGFloat to use.

MrLotU commented 4 years ago

Now available in https://github.com/MrLotU/SwiftPrometheus/releases/tag/1.0.0-alpha.7