-
-
Notifications
You must be signed in to change notification settings - Fork 643
Expand file tree
/
Copy pathRNSViewInteractionManager.h
More file actions
25 lines (19 loc) · 824 Bytes
/
RNSViewInteractionManager.h
File metadata and controls
25 lines (19 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
@interface RNSViewInteractionManager : NSObject
/**
* The behavior is controlled by `ios26AllowInteractionsDuringTransition` feature flag.
* The default is `true`, which means that `disableInteractions`/`enableInteractions` do nothing.
*/
@property (nonatomic) BOOL disabled;
- (instancetype)init;
/**
* Given a view, traverse its ancestors hierarchy and find a view that supports RNSViewInteractionAware protocol
* and can disable interactions for the time of screen transition. Make sure that at most one view is disabled at any
* time, re-enabling interactions on previously affected views when necessary.
*/
- (void)disableInteractionsForSubtreeWith:(UIView *)view;
/**
* Re-enable interactions on the view that had them previously disabled.
*/
- (void)enableInteractionsForLastSubtree;
@end