UIView+FLEX_Layout.h 710 B

12345678910111213141516171819202122232425262728
  1. //
  2. // UIView+FLEX_Layout.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 7/18/19.
  6. // Copyright © 2020 FLEX Team. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #define Padding(p) UIEdgeInsetsMake(p, p, p, p)
  10. @interface UIView (darkMode)
  11. - (BOOL)darkMode;
  12. @end
  13. @interface UIView (FLEX_Layout)
  14. - (void)centerInView:(UIView *)view;
  15. - (void)pinEdgesTo:(UIView *)view;
  16. - (void)pinEdgesTo:(UIView *)view withInsets:(UIEdgeInsets)insets;
  17. - (void)pinEdgesToSuperview;
  18. - (void)pinEdgesToSuperviewWithInsets:(UIEdgeInsets)insets;
  19. - (void)pinEdgesToSuperviewWithInsets:(UIEdgeInsets)insets aboveView:(UIView *)sibling;
  20. - (void)pinEdgesToSuperviewWithInsets:(UIEdgeInsets)insets belowView:(UIView *)sibling;
  21. @end