I'm trying out Hyperloop. And I'm trying to run a custom swift script I have in my project (like shown in the exmaple).
Here's my swift code:
import UIKit
public class MySwiftCode : NSObject {
func SayHello() {
let alertController = UIAlertController(title: "iOScreator", message: "Hello, world!", preferredStyle: UIAlertControllerStyle.Alert)
alertController.addAction(UIAlertAction(title: "Dismiss", style: UIAlertActionStyle.Default,handler: nil))
}
}
when compiling I get the following error message:
[INFO] Generating metabase for swift MyFramework /Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/src/MySwift.swift
Swift Generation failed with unknown or unsupported type (UIAlertController) found while compiling /Users/ophir/Documents/Appcelerator_Studio_Workspace/HyperloopApp/src/MySwift.swift
2016-01-26T16:40:22.195Z | ERROR | ti run exited with error code 1
UIAlertController
is part of UIKit
(https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertController_class/) and from my understanding native code ran with Hyperloop won't need to wait for Appcelerator to implement it. So I'm wondering why this code doesn't run.