Skip to content

Instance Method

register(source:using:searchable:)

Register a LeafSource as key
func register(source key: String = "default", using source: any LeafSource, searchable: Bool = true) throws

Parameters

key

Name for the source; at most one may be registered without a name

source

A fully configured LeafSource object

searchable

Whether the source should be added to the default search path

Discussion

Throws

Attempting to overwrite a previously named source is not permitted