Swiftgram/LegacyComponents/TGPhotoStickersView.h
2017-07-28 16:50:06 +03:00

22 lines
844 B
Objective-C

#import "TGPhotoPaintSettingsView.h"
#import <LegacyComponents/LegacyComponentsContext.h>
@class TGViewController;
@class TGDocumentMediaAttachment;
@interface TGPhotoStickersView : UIView <TGPhotoPaintPanelView>
@property (nonatomic, weak) TGViewController *parentViewController;
@property (nonatomic, weak) UIView *outerView;
@property (nonatomic, weak) UIView *targetView;
@property (nonatomic, copy) void (^stickerSelected)(TGDocumentMediaAttachment *, CGPoint, TGPhotoStickersView *, UIView *);
@property (nonatomic, copy) void (^dismissed)(void);
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context frame:(CGRect)frame;
- (void)dismissWithSnapshotView:(UIView *)view startPoint:(CGPoint)startPoint targetFrame:(CGRect)targetFrame targetRotation:(CGFloat)targetRotation completion:(void (^)(void))completion;
@end