Add GenericInterfaceRegistry#256
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
c3d3b27 to
9cacb51
Compare
37971b2 to
2e381aa
Compare
|
|
||
| /// Enables QueryInterface for Swift-implemented generic interfaces. | ||
| /// | ||
| /// When a Swift collection (e.g. `ArrayVector<Any?>`) is passed to WinRT as `IInspectable`, |
There was a problem hiding this comment.
in general a more complete approach would be to support proper generics and runtime pinterface generation. i will work on upstreaming these changes, i have a version of swift-winrt which supports this, along with the few other missing features this repo has. i can work on this if it sounds helpful
There was a problem hiding this comment.
the main benefit of supporting this is that you can box delegates and use the UIElement.addHandler function
There was a problem hiding this comment.
Nice! Yeah this was a POC that I pushed prematurely, definitely not ready to merge.
Would definitely welcome a PR for that! We ran into the same itemsSource issue described in #159.

No description provided.