(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
public typealias myFunctionDefAlias = (@objc_block (String, String, NSNumber) -> Void) | |
@objc | |
public protocol MyJSExportProtocol: JSExport { | |
// JSExportAs alternative in Swift via closure | |
var myFunction:myFunctionDefAlias? {get} | |
} | |
@objc | |
public class MyJSExportClass: NSObject, MyJSExportProtocol { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* | |
* Test | |
*/ | |
function test(title, f, options) { | |
if (options == null) { | |
options = { | |
logTree: true | |
}; | |
} |