Skip to content

Definition of Fabric Native Components using Swift #146

Closed Answered by cipolleschi
flokol120 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @flokol120! Unfortunately, currently it is not possible to implement a Fabric Component using Swift easily.
The Fabric interfaces relies a lot on C++ code which is not usable for Swift as they not interop well enough for our purposes.

There could be wayt to do that, by adding an ObjectiveC++ layer in between, but we never tested it and the process could be cumbersome and introduce subtle bugs, so we are not advising this, nor working on that right now.

We have ideas on how to simplify the setup to enable using Swift to create Fabric Components, but currently is not our highest priority. :(

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by flokol120
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants