Skip to content

Commit

Permalink
Add comment to DataResource.callAsFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlokhorst committed Dec 1, 2022
1 parent f062afb commit def64c3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ extension NSDataAsset {
}

extension DataResource {

/**
Returns the raw data values from this resource (`R.data.*`)

- parameter resource: The resource you want the data asset of (`R.data.*`)
*/
public func callAsFunction() -> Data? {
NSDataAsset(resource: self)?.data
}
Expand Down

0 comments on commit def64c3

Please sign in to comment.