Closed sbertix closed 4 years ago
CGFloat is not part of Foundation, so when imported, for instance through SPM, in packages not importing CoreGraphics, UIKit or SwiftUI, it won't compile. Wrapping CGFloat accessories into conditional statements solves the issue.
CGFloat
Foundation
CoreGraphics
UIKit
SwiftUI
CGFloat
is not part ofFoundation
, so when imported, for instance through SPM, in packages not importingCoreGraphics
,UIKit
orSwiftUI
, it won't compile. WrappingCGFloat
accessories into conditional statements solves the issue.