提交
This commit is contained in:
51
TUIKit/TIMCommon/CommonModel/TIMRTLUtil.h
Normal file
51
TUIKit/TIMCommon/CommonModel/TIMRTLUtil.h
Normal file
@@ -0,0 +1,51 @@
|
||||
//
|
||||
// TIMRTLUtil.h
|
||||
// TIMCommon
|
||||
//
|
||||
// Created by cologne on 2023/7/21.
|
||||
// Copyright © 2023 Tencent. All rights reserved
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user