Add import of UIKit to use the library on an iOS client
matiasvillaverde opened this issue · comments
Mati commented
I tried to use the library from an iOS app, and everything is compatible except that the compiler gets a bit confused of where to useCGFloat
.
While trying to compile we get this error
Use of undeclared type 'CGFloat'
This gets fixed by adding a compiler flag to know if we need to import CoreGraphics
on iOS.
Steps to reproduce
- Import Prometheus library to an iOS App
- Try to compile the app
- Error will prevent compiling
Expected behavior
Just be able to compile on iOS
- OS version: iOS 12
- Swift version: 5.1
- Serverside Swift Framework: -
- Framework version: 1.0.0-alpha
Jari (LotU) commented
Fixed per #34
Jari (LotU) commented
Now available in https://github.com/MrLotU/SwiftPrometheus/releases/tag/1.0.0-alpha.7