Instance Method
resolveAsset(named:in:withType:)
Attempt to resolve an asset given its name and the topic it’s referenced in.
func resolveAsset(named name: String, in parent: ResolvedTopicReference, withType type: DocumentationContext.AssetType? = nil) -> DataAsset?
Parameters
nameThe name of the asset.
parentThe topic where the asset is referenced.
typeA restriction for what type of asset to resolve.
Return Value
The data that’s associated with an image asset if it was found, otherwise nil.