dagronf / DSFSparkline

A lightweight sparkline component for macOS, iOS and tvOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

BlackBird-One opened this issue · comments

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"

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

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!

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