Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
BlackBird-One opened this issue Mar 19, 2021 · 3 comments
Assignees

Comments

@BlackBird-One
Copy link

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
Copy link
Owner

dagronf commented Mar 21, 2021

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

dagronf added a commit that referenced this issue Mar 21, 2021
@dagronf
Copy link
Owner

dagronf commented Mar 21, 2021

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 dagronf self-assigned this Mar 21, 2021
@dagronf
Copy link
Owner

dagronf commented Mar 29, 2021

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

@dagronf dagronf closed this as completed Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants