1AppDelegate.m
2
3#import "SDImageCodersManager.h"
4#import <SDWebImageWebPCoder/SDImageWebPCoder.h>
5
6- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
7{
8 ...
9 // Register support for WebP images.
10 [SDImageCodersManager.sharedManager addCoder:SDImageWebPCoder.sharedCoder];
11 ...
12}