//
//  GifView.m
//  UnretekFace3D
//
//  Created by JasWorkSpace on 2018/11/14.
//  Copyright © 2018 Unre（Shanghai）Information Technology Co., Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>
#include "GifView.h"


@implementation GifView


- (void) loadGif:(NSString *) giffile
{
    NSURL *url1 = [[NSBundle mainBundle] URLForResource:giffile withExtension:@"gif"];
    NSData *data1 = [NSData dataWithContentsOfURL:url1];
    self.animatedImage = [[FLAnimatedImage alloc] initWithAnimatedGIFData:data1];
}

- (void) clearView
{
    self.image = [UIImage new];
    self.animatedImage = nil;
}

@end
