Class
LeafSources
An opaque object holding named
LeafSource adherants specifying a default search order.final class LeafSources
Overview
This object is public solely for convenience in reading the currently configured state.
Once registered, the LeafSource objects can not be accessed or modified - they must be fully configured prior to registering with the instance of LeafSources
LeafSourceobjects are registered with an instance of this class - this should only be done prior to use byLeafRenderer..allprovides aSetof theStringkeys for all sources registered with the instance.searchOrderprovides the keys of sources that an unspecified template request will search.
Topics
Initializers
Instance Properties
var all: Set<String>All availableLeafSources of templatesvar searchOrder: [String]Configured default implicit search order ofLeafSource’s
Instance Methods
func register(source: String, using: any LeafSource, searchable: Bool) throwsRegister aLeafSourceaskey
Type Methods
static func singleSource(any LeafSource) -> LeafSourcesConvenience for initializing aLeafSourcesobject with a singleLeafSource
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype