Swiftgram/Display/CATracingLayer.h
2017-03-21 19:58:45 +03:00

40 lines
1.1 KiB
Objective-C

#import <UIKit/UIKit.h>
@interface CATracingLayer : CALayer
@end
@interface CATracingLayerInfo : NSObject
@property (nonatomic, readonly) bool shouldBeAdjustedToInverseTransform;
@property (nonatomic, weak, readonly) id _Nullable userData;
@property (nonatomic, readonly) int32_t tracingTag;
- (instancetype _Nonnull)initWithShouldBeAdjustedToInverseTransform:(bool)shouldBeAdjustedToInverseTransform userData:(id _Nullable)userData tracingTag:(int32_t)tracingTag;
@end
@interface UITracingLayerView : UIView
- (void)scheduleWithLayout:(void (^_Nonnull)())block;
@end
@interface CALayer (Tracing)
- (CATracingLayerInfo * _Nullable)traceableInfo;
- (void)setTraceableInfo:(CATracingLayerInfo * _Nullable)info;
- (bool)hasPositionOrOpacityAnimations;
- (bool)hasPositionAnimations;
- (void)setInvalidateTracingSublayers:(void (^_Nullable)())block;
- (NSArray<NSArray<CALayer *> *> * _Nonnull)traceableLayerSurfacesWithTag:(int32_t)tracingTag;
- (void)adjustTraceableLayerTransforms:(CGSize)offset;
- (void)setPositionAnimationMirrorTarget:(CALayer * _Nullable)animationMirrorTarget;
- (void)invalidateUpTheTree;
@end