| 12345678910111213141516171819202122 |
- //
- // UIView+Layout.h
- // FLEX
- //
- // Created by Tanner Bennett on 7/18/19.
- //Copyright © 2019 Flipboard. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #define Padding(p) UIEdgeInsetsMake(p, p, p, p)
- @interface UIView (Layout)
- - (void)centerInView:(UIView *)view;
- - (void)pinEdgesTo:(UIView *)view;
- - (void)pinEdgesTo:(UIView *)view withInsets:(UIEdgeInsets)insets;
- - (void)pinEdgesToSuperview;
- - (void)pinEdgesToSuperviewWithInsets:(UIEdgeInsets)insets;
- @end
|