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

[arkit] Add ARBlendShapeLocationOptions strong dictionary #2696

Merged
merged 2 commits into from
Sep 14, 2017

Conversation

VincentDondain
Copy link
Contributor

@VincentDondain VincentDondain commented Sep 14, 2017

I chose to not transform those ARBlendShapeLocation constants ([Field]) into a smart enum because a strong dictionary is what the APIs need most.

*/
IntPtr Constructor (NSDictionary blendShapes);

[Wrap ("this ((NSDictionary)blendShapes?.Dictionary)")]
Copy link
Member

Choose a reason for hiding this comment

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

Why is this cast needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's trying to use NSObjectFlag otherwise.


[iOS (11,0)]
[NoWatch, NoTV, NoMac]
[Static]
Copy link
Contributor

Choose a reason for hiding this comment

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

Use [Internal] so this leaves us the option to expose it as a smart enum later (at the cost of extra manual code or generator changes).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes good idea, thanks.

@monojenkins
Copy link
Collaborator

Build failure

@monojenkins
Copy link
Collaborator

Build success

@spouliot spouliot merged commit c64c6e1 into xamarin:xcode9 Sep 14, 2017
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.

6 participants