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 function to get Data from DataResource directly #773

Merged
merged 1 commit into from
Dec 1, 2022
Merged

Add function to get Data from DataResource directly #773

merged 1 commit into from
Dec 1, 2022

Conversation

417-72KI
Copy link
Contributor

@417-72KI 417-72KI commented Dec 1, 2022

Addresses #454

There is only a simple initializer of NSDataAsset currently.

if let asset = NSDataAsset(resource: R.data.animation) {
    let data = asset.data
}

This PR makes it possible to call like let data = R.data.animation()

@tomlokhorst
Copy link
Collaborator

Thanks again!

@tomlokhorst tomlokhorst merged commit 0c8a100 into mac-cain13:master Dec 1, 2022
@417-72KI 417-72KI deleted the extract-data-from-dataresource branch December 1, 2022 12:28
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.

2 participants