Skip to content

Commit

Permalink
Note about mixing Swift with ObjC (issue #31)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Apr 16, 2015
1 parent b2cde2a commit b0a2bab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ In order to correctly compile:
1. Drag the `Charts.xcodeproj` to your project
2. Go to your target's settings, hit the "+" under the "Embed Frameworks" section, and select the Charts.framework
3. `@import Charts`
4. When using Swift in an ObjC project, you need to import your Bridging Header. Usually it is "*YourProject-Swift.h*", so in ChartsDemo it's "*ChartsDemo-Swift.h*". Do not try to actually include "*ChartsDemo-Swift.h*" in your project :-)

If you want to compile for iOS 7, then you just need to drag the code itself (.swift files) to your project. As sadly, Swift currently does not support compiling Frameworks for iOS 7.

Expand Down

0 comments on commit b0a2bab

Please sign in to comment.