Constants that specify the edges of a rectangle.
SDKs
- iOS 7.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- UIKit
Declaration
struct UIRectEdge
Overview
You can add these constants together to specify multiple edges at the same time.
Constants that specify the edges of a rectangle.
SDKs
Framework
struct UIRectEdge
You can add these constants together to specify multiple edges at the same time.
static var top: UIRect Edge
The top edge of the rectangle.
static var left: UIRect Edge
The left edge of the rectangle.
static var bottom: UIRect Edge
The bottom edge of the rectangle.
static var right: UIRect Edge
The right edge of the rectangle.
static var all: UIRect Edge
All edges of the rectangle.
var edges For Extended Layout: UIRect Edge
The edges that you extend for your view controller.
var extended Layout Includes Opaque Bars: Bool
A Boolean value indicating whether or not the extended layout includes opaque bars.
func view Will Layout Subviews()
Called to notify the view controller that its view is about to layout its subviews.
func view Did Layout Subviews()
Called to notify the view controller that its view has just laid out its subviews.
func update View Constraints()
Called when the view controller's view needs to update its constraints.