/* Copyright 2024 New Vector Ltd. Copyright 2017 Aram Sargsyan SPDX-License-Identifier: AGPL-3.0-only Please see LICENSE in the repository root for full details. */ #import #import typedef NS_ENUM(NSInteger, PhotoBrowserAnimationType) { PhotoBrowserZoomInAnimation, PhotoBrowserZoomOutAnimation }; @protocol MXKSourceAttachmentAnimatorDelegate - (UIImageView *)originalImageView; - (CGRect)convertedFrameForOriginalImageView; @end @protocol MXKDestinationAttachmentAnimatorDelegate - (BOOL)prepareSubviewsForTransition:(BOOL)isStartInteraction; - (UIImageView *)finalImageView; @end @interface MXKAttachmentAnimator : NSObject - (instancetype)initWithAnimationType:(PhotoBrowserAnimationType)animationType sourceViewController:(UIViewController *)viewController; + (CGRect)aspectFitImage:(UIImage *)image inFrame:(CGRect)targetFrame; @end