title: How to write Cordova plugin in Swift?
body: <p>I converted existing custom plugin to Swift language:</p>
  
  <p><em>(located under <code>Plugins/CustomPluginInSwift.swift</code>)</em></p>
  
  <pre><code>import Foundation
  
  class CustomPluginInSwift : CDVPlugin {    
  
      func getSettings(command: CDVInvokedUrlCommand) {        
  
          println("CustomPluginInSwift :: getSettings is called")               
  
          var pluginResult = CDVPluginResult(status: CDVCommandStatus_OK)
          commandDelegate.sendPluginResult(pluginResult, callbackId:command.callbackId)
      }
  }
  </code></pre>
  
  <p>And I have two problems:</p>
  
  <ul>
  <li><code>CDVPlugin</code> not found</li>
  <li>Javascript doesn't see plugin: <code>CustomPluginInSwift</code>:</li>
  </ul>
  
  <blockquote>
    <p>CDVPlugin class CustomPluginInSwift (pluginName: CustomPluginInSwift) does not exist</p>
  </blockquote>
  
  <p>I left <code>config.xml</code> the same but it doesn't work as expected.</p>
  
  <p>Where is my problem?</p>