30 lines
744 B
Objective-C
30 lines
744 B
Objective-C
//
|
|
// GiftAnimationManager.h
|
|
// YuMi
|
|
//
|
|
// Created by P on 2024/12/9.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface GiftAnimationHelper : NSObject
|
|
|
|
/**
|
|
* Begins a gift animation from a start point to an end point
|
|
* @param giftUrl URL of the gift image to display
|
|
* @param startPoint Starting position of the animation
|
|
* @param endPoint Ending position of the animation
|
|
* @param isGiftCombing Flag to determine if this is a combo animation
|
|
*/
|
|
- (void)beginGiftAnimation:(NSString *)giftUrl
|
|
startPoint:(CGPoint)startPoint
|
|
endPoint:(CGPoint)endPoint
|
|
isGiftCombing:(BOOL)isGiftCombing
|
|
toTargetView:(UIView *)targetView;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|