From 41ab2433ca0dd98fb203c0ed11f72f2577dc29be Mon Sep 17 00:00:00 2001 From: matiasvillaverde Date: Fri, 15 May 2020 16:15:23 +0200 Subject: [PATCH] Prevent the compiler finding the wrong CGFloat --- Sources/Prometheus/Utils.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Prometheus/Utils.swift b/Sources/Prometheus/Utils.swift index 5f040c1..903c2d6 100644 --- a/Sources/Prometheus/Utils.swift +++ b/Sources/Prometheus/Utils.swift @@ -1,5 +1,9 @@ import Foundation +#if os(iOS) || os(watchOS) || os(tvOS) +import CoreGraphics +#endif + /// Empty labels class public struct EmptyLabels: MetricLabels { /// Creates empty labels