fxm90 / GradientLoadingBar

βŒ›οΈA customizable animated gradient loading bar.

Home Page:https://github.com/fxm90/GradientLoadingBar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find 'UIDevice' in scope

OnurVar opened this issue Β· comments

Hello,

I just downloaded v2.2.0 using SPM and it seems like UIKit is missing on NotchGradientLoadingBarViewModel.swift

Best regards

image

Thanks for reporting πŸ™ UIDevice is definitely part of UIKit, weird that the project was compiling for me though πŸ€”

Anyhow, I've just released version 2.2.1 containing the correct import πŸ‘

image

Thanks for the quick fix. It was also working on my project using cocoapods. But when I switch to SPM from cocoapods, it failed. I believe this is because of the way cocoapod handles uikit framework.

Best regards

Thanks for explaining πŸ‘ Just searched for two seconds on Google, and there is already a Medium article about that issue: UIKit is currently being imported by CocoaPods in iOS-targeted Pods πŸ˜„