22
22
// THE SOFTWARE.
23
23
24
24
#import " UINavigationBar+KMNavigationBarTransition.h"
25
- #import " UINavigationBar+KMNavigationBarTransition_internal.h"
26
- #import " KMWeakObjectContainer.h"
27
25
#import < objc/runtime.h>
28
26
#import " KMSwizzle.h"
29
27
@@ -37,13 +35,6 @@ + (void)load {
37
35
@selector (layoutSubviews ),
38
36
[self class ],
39
37
@selector (km_layoutSubviews ));
40
- // fix the bug of iOS14 beta 6
41
- if (@available (iOS 14.0 , *)) {
42
- KMSwizzleMethod ([self class ],
43
- NSSelectorFromString (@" _accessibility_navigationController" ),
44
- [self class ],
45
- @selector (km_accessibility_navigationController ));
46
- }
47
38
});
48
39
}
49
40
#endif
@@ -64,24 +55,4 @@ - (void)setKm_isFakeBar:(BOOL)hidden {
64
55
objc_setAssociatedObject (self, @selector (km_isFakeBar ), @(hidden), OBJC_ASSOCIATION_RETAIN_NONATOMIC );
65
56
}
66
57
67
- - (UINavigationController *) km_accessibility_navigationController {
68
- UINavigationController * navigationController = [self km_accessibility_navigationController ];
69
- if (self.km_isFakeBar ) {
70
- // if it's fake navigation bar
71
- // return previously bound navigationController.
72
- return self.km_fakeController ;
73
- }
74
- return navigationController;
75
- }
76
-
77
- - (UINavigationController *)km_fakeController
78
- {
79
- return km_objc_getAssociatedWeakObject (self, @selector (km_fakeController ));
80
- }
81
-
82
- - (void )setKm_fakeController : (UINavigationController *)km_fakeController
83
- {
84
- km_objc_setAssociatedWeakObject (self, @selector (km_fakeController ), km_fakeController);
85
- }
86
-
87
58
@end
0 commit comments