|
12 | 12 |
|
13 | 13 | typedef void (^LVQueueTransitionBlock)(void); |
14 | 14 |
|
15 | | -static BOOL _LVModelQueueEnabled = YES; |
| 15 | +static BOOL _LVModalQueueEnabled = YES; |
16 | 16 |
|
17 | 17 | static const NSMutableArray <LVQueueTransitionBlock> *transitionQueue; |
18 | 18 | static BOOL isTransitioning = NO; |
@@ -49,7 +49,7 @@ +(void)load |
49 | 49 | */ |
50 | 50 | - (void)lv_queuePresentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)animated completion:(void (^)(void))completion |
51 | 51 | { |
52 | | - if (!_LVModelQueueEnabled) { |
| 52 | + if (!_LVModalQueueEnabled) { |
53 | 53 | [self lv_queuePresentViewController:viewControllerToPresent animated:animated completion:[UIViewController lv_queueBlockWithCompletionBlock:completion animated:animated]]; |
54 | 54 | return; |
55 | 55 | } |
@@ -88,7 +88,7 @@ - (void)lv_queuePresentViewController:(UIViewController *)viewControllerToPresen |
88 | 88 | */ |
89 | 89 | - (void)lv_queueDismissViewControllerAnimated:(BOOL)animated completion:(void (^)(void))completion |
90 | 90 | { |
91 | | - if (!_LVModelQueueEnabled) { |
| 91 | + if (!_LVModalQueueEnabled) { |
92 | 92 | [self lv_queueDismissViewControllerAnimated:animated completion:[UIViewController lv_queueBlockWithCompletionBlock:completion animated:animated]]; |
93 | 93 | return; |
94 | 94 | } |
@@ -282,16 +282,16 @@ - (BOOL)lv_isRootViewController |
282 | 282 |
|
283 | 283 | @end |
284 | 284 |
|
285 | | -@implementation LVModelQueueConfiguration |
| 285 | +@implementation LVModalQueueConfiguration |
286 | 286 |
|
287 | 287 | + (void)setEnabled:(BOOL)enabled |
288 | 288 | { |
289 | | - _LVModelQueueEnabled = enabled; |
| 289 | + _LVModalQueueEnabled = enabled; |
290 | 290 | } |
291 | 291 |
|
292 | 292 | + (BOOL)isEnabled |
293 | 293 | { |
294 | | - return _LVModelQueueEnabled; |
| 294 | + return _LVModalQueueEnabled; |
295 | 295 | } |
296 | 296 |
|
297 | 297 | @end |
0 commit comments