Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

ModusCreateOrg/cordova-swift-plugin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No longer maintained

[DEPRECATED] This repository is no longer maintained

While this project is fully functional, the dependencies are no longer up to date. You are still welcome to explore, learn, and use the code provided here.

Modus is dedicated to supporting the community with innovative ideas, best-practice patterns, and inspiring open source solutions. Check out the latest Modus Labs projects.

Modus Labs


Cordova Swift Plugin Example

UPDATE: 1/1/2017 -- IF YOU ARE USING SWIFT 3 / XCODE 8.2 THEN USE THE SWIFT 3 UPDATE OF THIS PLUGIN -- REPO HERE.

Example Cordova plugin for iOS to support blog post. The native part of the plugin is written in Swift rather than Objective-C. You can read the blog post here.

A simple Cordova plugin based on the ModusEcho plugin example, which in turn was based on the echo plugin example from the Cordova documentation.

  • echo method: Extends that example to display a native dialog on iOS that auto dismisses after a short time.
  • echojs method: Basic demo showing that plugins can also be used to organize and distribute useful JavaScript, and don't need native implementations necessarily.