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

Compile Error #3372

Closed
1 task
hengchengfei opened this issue Apr 1, 2018 · 1 comment
Closed
1 task

Compile Error #3372

hengchengfei opened this issue Apr 1, 2018 · 1 comment

Comments

@hengchengfei
Copy link

ℹ Please fill out this template when filing an issue.
All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for
bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag ios-charts.

Please remove this line and everything above it before submitting.

What did you do?

Demo project,Compile Error.

What did you expect to happen?

Compile Normal

What happened instead?

Compile Error

Charts Environment

Charts version/Branch/Commit Number:
Xcode version:
Swift version:
Platform(s) running Charts:
macOS version running Xcode:

Demo Project

XCode9.2

1

@branddirections
Copy link

branddirections commented Apr 1, 2018

Might be because of the xcode/swift version you are using as previously used "flatMap" is now "compactMap".

Simply change the code to:
points.enumerated().flatMap { (index: Int, point: CGPoint) -> CGPoint? in

@jjatie jjatie closed this as completed Apr 1, 2018
@ChartsOrg ChartsOrg locked as resolved and limited conversation to collaborators Apr 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants