updateContentUnavailableConfiguration(using:)
Updates the content-unavailable configuration for the provided state.
Declaration
@MainActor @objc(_bridgedUpdateContentUnavailableConfigurationUsingState:) @preconcurrency dynamic func updateContentUnavailableConfiguration(using state: UIContentUnavailableConfigurationState)Parameters
- state:
The current configuration state for a content-unavailable view.
Discussion
Override this method to update the value of contentUnavailableConfiguration as appropriate for the given state.
Don’t call this method directly. Instead, call setNeedsUpdateContentUnavailableConfiguration() to tell the system to request an update.
In iOS 18 and later, UIKit supports automatic trait tracking inside this method for traits from this view controller’s traitCollection and the traitCollection of its view. For more information, see Automatic trait tracking.
This method supports automatic observation tracking. For more information, see Updating views automatically with observation tracking.