Skip to content

Commit

Permalink
Document where to specify Swift version preference
Browse files Browse the repository at this point in the history
  • Loading branch information
eladnava authored and akofman committed Apr 10, 2018
1 parent 0bcad3c commit a0bae0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ Or add it as a dependency into your own plugin:

`<dependency id="cordova-plugin-add-swift-support" version="1.7.2"/>`

By default, the Swift 3 support is added but the legacy version (2.3) can still be configured as a preference:
By default, the Swift 3 support is added but the legacy version (2.3) can still be configured as a preference, inside the project's `config.xml`, within the `<platform name="ios">` section:

`<preference name="UseLegacySwiftLanguageVersion" value="true" />`

Or it is possible to specify the version as following:
Or it is possible to specify the version as following, inside the project's `config.xml`, within the `<platform name="ios">` section:

`<preference name="UseSwiftLanguageVersion" value="4" />`

Expand Down

0 comments on commit a0bae0d

Please sign in to comment.