Passing functions to plugins
At the moment, you can only pass simple values (numbers, booleans, strings), arrays and dictionaries/objects across the bridge to Swift. I think it would be useful to be able to pass a function as an argument. Sometimes you want to call JS from native code in response to some events or whatever. One way to do it is to hard-code JS method names in native plugins. But often it might be cleaner/easier to pass a reference to the function at caller site.
Downside is that it requires some additional processing on both sides of the bridge. We'd have to save the reference somewhere, give it a unique ID and code it in the passed arguments somehow — e.g. pass it as ['function', 123] (we'd have to code arrays as ['array', [...]] or something to disambiguate, which is a little silly)