mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-09 06:00:43 +00:00
35 lines
1.0 KiB
Objective-C
35 lines
1.0 KiB
Objective-C
//
|
|
// _ASTransitionContext.h
|
|
// AsyncDisplayKit
|
|
//
|
|
// Created by Levi McCallum on 2/4/16.
|
|
// Copyright © 2016 Facebook. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "ASContextTransitioning.h"
|
|
|
|
@class ASLayout;
|
|
@class _ASTransitionContext;
|
|
|
|
@protocol _ASTransitionContextDelegate <NSObject>
|
|
|
|
- (void)transitionContext:(_ASTransitionContext *)context didComplete:(BOOL)didComplete;
|
|
- (CGRect)transitionContext:(_ASTransitionContext *)context initialFrameForNode:(ASDisplayNode *)node;
|
|
- (CGRect)transitionContext:(_ASTransitionContext *)context finalFrameForNode:(ASDisplayNode *)node;
|
|
|
|
@end
|
|
|
|
@interface _ASTransitionContext : NSObject <ASContextTransitioning>
|
|
|
|
@property (assign, readonly, nonatomic, getter=isAnimated) BOOL animated;
|
|
|
|
@property (strong, readonly) ASLayout *layout;
|
|
|
|
@property (assign, readonly) ASSizeRange constrainedSize;
|
|
|
|
- (instancetype)initWithLayout:(ASLayout *)layout constrainedSize:(ASSizeRange)constrainedSize animated:(BOOL)animated delegate:(id<_ASTransitionContextDelegate>)delegate;
|
|
|
|
@end
|