Huge thanks to @NSAntoine for https://nsantoine.dev/posts/CALayerCaptureHiding
17 lines
392 B
Objective-C
17 lines
392 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
@interface CALayer(private)
|
|
@property(atomic, assign) NSUInteger disableUpdateMask;
|
|
@end
|
|
|
|
@interface ControlLayout : UIView
|
|
|
|
@property(nonatomic) NSMutableDictionary *layoutDictionary;
|
|
|
|
- (void)loadControlLayout:(NSMutableDictionary *)layoutDictionary;
|
|
- (void)loadControlFile:(NSString *)path;
|
|
- (void)removeAllButtons;
|
|
- (void)hideViewFromCapture:(BOOL)hide;
|
|
|
|
@end
|