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

Macros are not available in Swift #100

Closed
danyalaytekin opened this issue Apr 17, 2015 · 3 comments
Closed

Macros are not available in Swift #100

danyalaytekin opened this issue Apr 17, 2015 · 3 comments
Assignees

Comments

@danyalaytekin
Copy link
Contributor

e.g. OHPathForFileInBundle

@AliSoftware
Copy link
Owner

Good point. But given that those macros use self.class to know the context they are called from, do you have a suggestion on how we could achieve a similar behavior in Swift?

@AliSoftware AliSoftware self-assigned this Apr 18, 2015
AliSoftware added a commit that referenced this issue Apr 18, 2015
@AliSoftware
Copy link
Owner

Hi,

This has just been fixed on master, by converting the macros to functions.

I have added a Swift Demo Project (see #88) that makes use of those new OHPathHelper functions so you can see how to use them.

Note: I still want to make some other (unrelated) modifications before pushing version 4.0.0 so there is no official tag/version yet, but there will be soon (probably tomorrow).

@danyalaytekin
Copy link
Contributor Author

Great, that's the route I'd have recommended. 👍

AliSoftware added a commit that referenced this issue Nov 3, 2015
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

No branches or pull requests

2 participants