Skip to content

Instantly share code, notes, and snippets.

@sTinGe
Last active December 20, 2019 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sTinGe/bc679b2dff190bc57c0c037a708b85a9 to your computer and use it in GitHub Desktop.
Save sTinGe/bc679b2dff190bc57c0c037a708b85a9 to your computer and use it in GitHub Desktop.
/// UIView.h
@class NSLayoutXAxisAnchor,NSLayoutYAxisAnchor,NSLayoutDimension;
@interface UIView (UIViewLayoutConstraintCreation)
/* Constraint creation conveniences. See NSLayoutAnchor.h for details.
*/
@property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(ios(9.0));
@property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(ios(9.0));
// more anchors...
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment