-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make accessible from Objective-C code #41
Comments
SwiftMessages uses data structures that can't be seen by Objective-C. So it isn't possible. What you can do is write your own helper function in Swift that can be seen by Objective-C and call that: func showErrorMessage(title: String, subtitle: String) {
// show message here
} |
@mattem86 Can you explain how you made this work? |
Hi, yes of course: I made a class "Messenger" in Swift:
and call it from my Objective-C class like (of course I have to #import my "Module"-Swift.h in it):
Hope this helps...! |
I haven't managed to get it used by ObjC code...
The text was updated successfully, but these errors were encountered: