Skip to content
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

Add support for global functions and variables #1610

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Mohammad3id
Copy link
Contributor

@Mohammad3id Mohammad3id commented Sep 27, 2024

fixes #1365

@coveralls
Copy link

Coverage Status

coverage: 91.123% (+0.09%) from 91.037%
when pulling 3e42af5 on Mohammad3id:swift2objc-globals-functions-and-variables
into 16918ae on dart-lang:main.

import Foundation

@objc public class GlobalsWrapper: NSObject {
@objc public var globalCustomConstantWrapper: MyOtherClassWrapper {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be static?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, it turns out I didn't add static keyword when generating static properties. Glad u caught that I totally missed it for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[swift2objc] Generate bindings for top level functions
3 participants