addObserver(_:)
Declaration
func addObserver(_ observer: any LAEnvironment.Observer)Discussion
Adds observer to monitor changes of the environment.
The observer will be held weakly so its instance should be kept alive by the caller.
func addObserver(_ observer: any LAEnvironment.Observer)Adds observer to monitor changes of the environment.
The observer will be held weakly so its instance should be kept alive by the caller.