// // TIMRTLUtil.h // TIMCommon // // Created by cologne on 2023/7/21. // Copyright © 2023 Tencent. All rights reserved // #import NS_ASSUME_NONNULL_BEGIN @interface TIMRTLUtil : NSObject @end @interface UIView (TUIRTL) - (void)resetFrameToFitRTL; @end @interface UIImage (TUIRTL) - (UIImage *_Nonnull)checkOverturn; - (UIImage *)rtl_imageFlippedForRightToLeftLayoutDirection; @end typedef NS_ENUM(NSUInteger, TUITextRTLAlignment) { TUITextRTLAlignmentUndefine, TUITextRTLAlignmentLeading, TUITextRTLAlignmentTrailing, TUITextRTLAlignmentCenter, }; @interface UILabel (TUIRTL) @property (nonatomic, assign) TUITextRTLAlignment rtlAlignment; @end @interface NSMutableAttributedString (TUIRTL) @property (nonatomic, assign) TUITextRTLAlignment rtlAlignment; @end BOOL isRTLString(NSString *string); NSString * rtlString(NSString *string); NSAttributedString *rtlAttributeString(NSAttributedString *attributeString ,NSTextAlignment textAlignment ); UIEdgeInsets rtlEdgeInsetsWithInsets(UIEdgeInsets insets); @interface TUICollectionRTLFitFlowLayout : UICollectionViewFlowLayout @end NS_ASSUME_NONNULL_END