Returns a Boolean value indicating whether appearance methods are forwarded to child view controllers.
SDKs
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
var shouldAutomaticallyForwardAppearanceMethods: Bool { get }
Return Value
true
if appearance methods are forwarded or false
if they are not.
Discussion
This method is called to determine whether to automatically forward appearance-related containment callbacks to child view controllers.
The default implementation returns true
. Subclasses of the UIView
class that implement containment logic may override this method to control how these methods are forwarded. If you override this method and return false
, you are responsible for telling the child when its views are going to appear or disappear. You do this by calling the child view controller's begin
and end
methods.