addSubresource(_:)
Adds a resource to the data source’s list of subresources.
Declaration
func addSubresource(_ subresource: WebResource!)Parameters
- subresource:
The resource to add to the data source.
Discussion
If the data source needs to reload the resource’s URL, it loads the data from subresource instead of the network. For example, use this method if you want to use a previously downloaded image rather than accessing the network to reload a resource. If the data source already has a resource with the same URL as subresource, then this method replaces it.