Display Alert Modal with Swift [ForeignCode]

Hey guys! I have been playing around with Foreign Code and Uno recently. I am currently struggling to find out how to display an native alert modal via Swift via ObjC. I know there are other ways to do it but I want to do it specifically do it in this way for further development needs.

Here is the gist of my files: https://gist.github.com/rylax/06fb1da2b8f118cd5a978fbb013243d1

This is the error that gets displayed in XCode:

Note that when I try to do something basic such as print("Hello World!" I get the following error:

I am having a really hard time with this and would love to get some help!

You can see the Fuse.Alerts source code as an example, even though is in Objective-C but you can learn the concept on how to create uno Javascript NativeModule, you can change the portion of the Objective-C code to your Swift code

Thank you for the quick answer! I already got some examples working with pure OBJ-C. It is the bridging to Swift that I do not get…