-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Import with Swift(not objc) not working #14
Comments
You need to import the Charts namespace. |
Hello Daniel The import Charts also do not work. I did tried to create a bridging header with: #import < Charts/Charts.h > And in my ViewController I did add: It did compile, but I got this error when the app start: fatal error: unexpectedly found nil while unwrapping an Optional value on ChartViewBase file in the line with: |
You are using the wring version of Swift, you haven't read the Readme.
|
my Xcode version is: Version 6.3 (6D554n) |
I replaced this line with: if (noDataTextDescription != nil && noDataTextDescription!.lengthOfBytesUsingEncoding(NSUTF16StringEncoding) > 0) and now it is working |
Ok, you were right, there is an issue :-) |
I have already pushed a fix |
thanks! |
Hi
I am trying to build a very simple code using swift.
But I can't figure out how can I import the Classes.
When I set the view to be PieChartView and create a :
@IBOutlet weak var testView: PieChartView!
I got "use of undeclared type: PieChartView
I did try to import PieChartView, but xcode can't find it.
I am using Xcode 6.3 beta 4 and already setup the "Embedded Binaries" and "Linked Frameworks and Libraries" to the Charts.framework.
Also I can't find one sample code of swift on the web.
Thanks
The text was updated successfully, but these errors were encountered: