Skip to content

Commit

Permalink
enable imports of swift code into objc akofman#9
Browse files Browse the repository at this point in the history
  • Loading branch information
mircoservices committed Mar 1, 2017
1 parent 64cdace commit 4427edd
Show file tree
Hide file tree
Showing 3 changed files with 7,406 additions and 7,337 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ As an example you can have a look at this [plugin](https://github.com/akofman/co

If the `cordova-plugin-add-swift-support` plugin is already installed to your project, then you can add your own Swift plugin as usual, its prefixed Bridging-Header will be automatically found and merged.

## Importing Swift into ObjectiveC code

Because **ProductModuleName** of application using some Swift Cordova plugin is different than **ProductModuleName** of the
plugin itself, you need to modify your ***.m*** files imports to:

```
#import "Swift2Objc-Header.h"
```

\* instead of ~~#import "ProductModuleName-Swift.h"~~

This header will be created by this plugin and automatically registered with xcode project.

## Contributing

The src folder contains ECMAScript 2015 source files.
Expand Down
Loading

0 comments on commit 4427edd

Please sign in to comment.