A Boolean value that indicates whether the receiver depends on the constraint-based layout system.
SDKs
- iOS 6.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
class var requiresConstraintBasedLayout: Bool { get }
Return Value
true
if the view must be in a window using constraint-based layout to function properly, false
otherwise.
Discussion
Custom views should override this to return true
if they cannot layout correctly using autoresizing.