dagronf / DSFSparkline

A lightweight sparkline component for macOS, iOS and tvOS
MIT License
138 stars 11 forks source link

Cannot find type 'NSTextAttachment' in scope" crashes when using SwiftPackage #5

Closed BlackBird-One closed 3 years ago

BlackBird-One commented 3 years ago

Hi, DFSSparkLine cannot be built into a purely SwiftUI application with SwiftPackage.

When the DFSSparkLine package is added to the application, the compilation crashes with the error "DSFSparklineSurface + AttributedString.swift: 84: 83: Cannot find type 'NSTextAttachment' in scope"

dagronf commented 3 years ago

Thanks for the heads up mate. I’ll take a look as soon as I can.

dagronf commented 3 years ago

Hey mate - I found the issue (I'd forgotten to add an import in the AttributedString code).

Changes 4.1.1 -> 4.1.2

Ive tested it locally and pushed a new version of the library up (4.1.2). Can you update to the latest version and check that this has fixed the issue you're seeing?

Thanks!

dagronf commented 3 years ago

Okay given I haven't heard anything I'm going to assume that everything was fixed.