0

I need to add a LineChart in my application.We can use Cocoapods. I have added : pod 'Charts' in Podfile for implementing Chart in my iOS application.While opening the workspace xcode asked for convert the project in to swift 3. But after that it shows so many errors(because of the language conversion from swift 2.3 to 3).

These are the steps that i have followed.

Added pod 'Charts' in Podfile, installed it then opened the workspace Added the link binary Charts.framework in the Build phases of project target Imported the Charts in ViewController

From github i got a solution for swift 3 pod 'SwiftCharts', :git => 'https://github.com/i-schuetz/SwiftCharts.git'

but in my case this also not working i couldn't even create an IBOutlet for my View(USed in viewcontroller for displaying the chart).

1 Answer 1

1

You may be use this pod for swift 3.0

use_frameworks!
pod 'SwiftCharts', :git => 'https://github.com/i-schuetz/SwiftCharts.git'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.