#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UILayoutGuide.h // UIKit // // Copyright © 2015-2018 Apple Inc. All rights reserved. // #import #import #import @class NSLayoutXAxisAnchor, NSLayoutYAxisAnchor, NSLayoutDimension; NS_HEADER_AUDIT_BEGIN(nullability, sendability) @class UIView; /* UILayoutGuides will not show up in the view hierarchy, but may be used as items in an NSLayoutConstraint and represent a rectangle in the layout engine. Create a UILayoutGuide with -init, and add to a view with -[UIView addLayoutGuide:] before using it in a constraint. */ UIKIT_EXTERN API_AVAILABLE(ios(9.0)) NS_SWIFT_UI_ACTOR @interface UILayoutGuide : NSObject /* The frame of the UILayoutGuide in its owningView's coordinate system. Valid by the time the owningView receives -layoutSubviews. */ @property(nonatomic,readonly) CGRect layoutFrame; /* The guide must be added to a view with -[UIView addLayoutGuide:] before being used in a constraint. Do not use this property directly to change the owningView of a layout guide. Instead, use -[UIView addLayoutGuide:] and -[UIView removeLayoutGuide:], which will use this property to change the owningView. */ @property(nonatomic,weak,nullable) UIView *owningView; /* For ease of debugging. 'UI' prefix is reserved for UIKit-created layout guides. */ @property(nonatomic,copy) NSString *identifier; /* Constraint creation conveniences. See NSLayoutAnchor.h for details. */ @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *leadingAnchor; @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *trailingAnchor; @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *leftAnchor; @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *rightAnchor; @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *topAnchor; @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *bottomAnchor; @property(nonatomic,readonly,strong) NSLayoutDimension *widthAnchor; @property(nonatomic,readonly,strong) NSLayoutDimension *heightAnchor; @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *centerXAnchor; @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *centerYAnchor; @end NS_HEADER_AUDIT_END(nullability, sendability) #else #import #endif