Comments (8)
@danielgindi @ahmadabudawod Please see http://stackoverflow.com/a/30648104/277370. When you use embedded framework, I had to do like the answer on SO. Using the #import <project>-Swift.h
works well when you directly add the library files (Classes/
) to your project (instead of just adding the .xcodeproj
and add it to embed frameworks).
I think when you only add the xcodeproj
, You must import it with #import "Charts/Charts-Swift.h"
from charts.
@allaire thumbs up. your solution helped me. I am not sure why, but the previous comments of importing #import -Swift.h did not solve the error.
from charts.
actually it should be "yourprojectname-swift.h" if you are using in your project.
also in build phase check "Embedded content contains swift code"s should be yes
from charts.
@allaire Thumbs up again. Hey @danielgindi I think the same can be updated for newbies. I was stuck with the same, being newbie to objc-swift bridging. Thanks again @allaire , you saved the day.
from charts.
Thanks @vishw3
from charts.
sorry for late but still have the same error
from charts.
@allaire
Xcode 8.1,iOS 10.1, I have this issue.
Thank you for your solution.
from charts.
put it in .m file and leave a forward declaration in .h
from charts.
Related Issues (20)
- Issue while setting LinearDataSet
- Build error while adding framework as embedded target
- LineChartRenderer.drawValues crash HOT 4
- Bar chart values are showing on the left side and not above the bar line if moves to vertical
- lowestVisibleX and highestVisibleX Accuracy problem HOT 1
- Unable to Focus on Charts View Using External Keyboard on iOS
- I am not able to make corner radius of each bar. HOT 1
- legend yOffset work isn't correct
- CombinedChartView with barChartView and stackBarChartView, tap effect error!
- Apple silicon Macs support issue HOT 4
- Not able to scroll a line chart horizontally, please help to do the same
- After upgrade to 5.0 all charts crash on <Chart>.delegate = self in ViewDidLoad() HOT 7
- NSBitmapImageRep deprecated from macOS 10.14: SOLUTION!
- IndexAxisValueFormatter behaves not as expected
- how to fix Value of type 'XAxis' has no member 'nameAxis'
- How to fill color only below the zero line and set different line color below the zero line
- How to set different colour to Y-Axis labels ?
- LinearChart left right padding HOT 2
- Crash using highlighted value in combined charts HOT 1
- View in center of Pie Chart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.