
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
37 lines
885 B
Objective-C
37 lines
885 B
Objective-C
//
|
|
// UINavigationController+MSRTL.m
|
|
// YuMi
|
|
//
|
|
// Created by duoban on 2024/4/12.
|
|
//
|
|
|
|
#import "UISwipeGestureRecognizer+MSRTL.h"
|
|
|
|
|
|
|
|
@implementation UISwipeGestureRecognizer (MSRTL)
|
|
|
|
+ (void)load
|
|
{
|
|
Method oldAttMethod = class_getInstanceMethod(self,@selector(setDirection:));
|
|
Method newAttMethod = class_getInstanceMethod(self,@selector(msrtl_setDirection:));
|
|
method_exchangeImplementations(oldAttMethod, newAttMethod); //交换成功
|
|
|
|
}
|
|
|
|
- (void)msrtl_setDirection:(UISwipeGestureRecognizerDirection)direction
|
|
{
|
|
|
|
if (isMSRTL()) {
|
|
if (direction == UISwipeGestureRecognizerDirectionRight) {
|
|
direction = UISwipeGestureRecognizerDirectionLeft;
|
|
} else if (direction == UISwipeGestureRecognizerDirectionLeft) {
|
|
direction = UISwipeGestureRecognizerDirectionRight;
|
|
}
|
|
}
|
|
[self msrtl_setDirection:direction];
|
|
}
|
|
|
|
|
|
@end
|