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

fix boxed NSObjects when using as Swift package #87

Merged
merged 2 commits into from Jan 13, 2023

Conversation

herrernst
Copy link
Contributor

Add a separate ObjC target with GRMustacheKeyAccess.m and depend on it

@fumito-ito
Copy link
Collaborator

@herrernst Thanks for your contribution ! Could you tell me how to reproduce the problems that will be fixed by this PR ?

E.g. install GRMustach.swift with cocoapods in Obj-C project.

@fumito-ito
Copy link
Collaborator

Maybe reference #28

@herrernst
Copy link
Contributor Author

Sorry for the late reply. Yes, #28 basically explains it. I've made a simple demo project which shows the behavior: https://github.com/herrernst/GRMustacheSwiftTest

Basically I want to use an NSObject subclass as context for the renderer. This doesn't not work with current release (4.x.x). If you switch the branch to this pull request pull/87/head in my example project, it will work

Screen Shot 2023-01-12 at 12 15 54

Copy link
Collaborator

@fumito-ito fumito-ito left a comment

Choose a reason for hiding this comment

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

@herrernst I got what is the problem that will be fixed by this PR ! Thanks !

@fumito-ito fumito-ito merged commit bbd0193 into groue:master Jan 13, 2023
@herrernst
Copy link
Contributor Author

Thank you very much!

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.

None yet

2 participants