UIView+RTL.h 444 B

123456789101112131415161718192021222324
  1. //
  2. // UIView+RTL.h
  3. // BuguLive
  4. //
  5. // Created by voidcat on 2024/9/12.
  6. // Copyright © 2024 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UIView (RTL)
  11. - (CGFloat)leading;
  12. - (void)setLeading:(CGFloat)leading;
  13. - (CGFloat)trailing;
  14. - (void)setTrailing:(CGFloat)trailing;
  15. -(BOOL)isRTL;
  16. - (void)checkOverturn;
  17. //overturned
  18. @property (nonatomic, assign) BOOL rtlOverturned;
  19. @end
  20. NS_ASSUME_NONNULL_END