Files
peko-ios/YuMi/CustomUI/MSRTL/UIImage+MSRTL.m
2024-04-11 17:05:27 +08:00

23 lines
391 B
Objective-C

//
// MSRTL.m
// YuMi
//
// Created by duoban on 2024/4/11.
//
#import "UIImage+MSRTL.h"
@implementation UIImage (MSRTL)
- (UIImage *)ms_SetImageForRTL {
if (isMSRTL()) {
return [UIImage imageWithCGImage:self.CGImage
scale:self.scale
orientation:UIImageOrientationUpMirrored];
}
return self;
}
@end