Contents

setConfiguration(_:)

Specifies the new configuration details for the toolbar.

Declaration

func setConfiguration(_ configDict: [String : Any])

Parameters

  • configDict:

    A dictionary with the toolbar configuration details. The toolbar ignores any keys it doesn’t recognize. Typically, you save the original configuration dictionary from the Configuration property to disk and recreate it before passing it in this parameter.

Discussion

If you implement your own autosave mechanism, call this method to restore the configuration of your toolbar to a previously saved state. The dictionary you read from disk must match the format of the dictionary in the configuration property.

See Also

Autosaving the configuration