-
Notifications
You must be signed in to change notification settings - Fork 26
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
Enable creating SRArray from rust and passing to Swift as arg #59
Comments
It seems like this might not be possible yet. From the docs:
|
Yea |
@Brendonovich ok thanks for the clarification. I'll change the ticket title to reflect that |
tleyden
changed the title
Question on SRArray usage
Enable creating SRArray from rust and passing to Swift as arg
Jan 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to create an
SRArray<SRData>
on the rust side and pass it as a parameter to a swift function? Do you have any examples of doing this?Basically what I'm trying to do is capture a series of screenshots, convert them from
CGImage
->SRData
, and then pass an array of SRData to a swift function. It can't all be on the swift side though, the rust code needs to collect the array ofSRData
and then pass it back to the swift side as an array.Does this sound like the right approach, or would
SRObjectArray<CGImage>
or defining a custom object be easier?The text was updated successfully, but these errors were encountered: