From b0a2bab9dfc3b1556f8e6c8ac170c74948e4f4f7 Mon Sep 17 00:00:00 2001 From: Daniel Cohen Gindi Date: Thu, 16 Apr 2015 19:40:23 +0300 Subject: [PATCH] Note about mixing Swift with ObjC (issue #31) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fe4ff01b9c..dcaccb105a 100644 --- a/README.md +++ b/README.md @@ -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.