//
//  SLDecodeGifImage.m
//  SLAiELTS
//
//  Created by Gusont on 2023/6/2.
//

#import "SLDecodeGifImage.h"

@implementation SLDecodeGifImage

+ (instancetype)SharedInstance
{
    static SLDecodeGifImage *decodeGifImage = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        decodeGifImage = [[SLDecodeGifImage alloc] init];
        {
            NSString *dataPath = [[NSBundle mainBundle]pathForResource:@"icon_msg_yy_ab" ofType:@"png"];
            NSData *data = [NSData dataWithContentsOfFile:dataPath];
            decodeGifImage.msgYyAb = [UIImage decodeGifImageByData:data];
        }
        {
            NSString *dataPath = [[NSBundle mainBundle]pathForResource:@"icon_msg_yy_aw" ofType:@"png"];
            NSData *data = [NSData dataWithContentsOfFile:dataPath];
            decodeGifImage.msgYyAw = [UIImage decodeGifImageByData:data];
        }
        {
            NSString *dataPath = [[NSBundle mainBundle]pathForResource:@"icon_yb_bg_01" ofType:@"jpg"];
            NSData *data = [NSData dataWithContentsOfFile:dataPath];
            decodeGifImage.msgYyBg = [UIImage decodeGifImageByData:data];
        }
    });
    return decodeGifImage;
}


@end
