From e51a2187bae2875b4cac6c7e7fb4c0b778894784 Mon Sep 17 00:00:00 2001 From: Akira Date: Mon, 20 May 2019 00:36:35 +0900 Subject: [PATCH 1/2] Import UIKit. --- SDWebImageWebPCoder/Classes/UIImage+WebP.h | 1 + 1 file changed, 1 insertion(+) diff --git a/SDWebImageWebPCoder/Classes/UIImage+WebP.h b/SDWebImageWebPCoder/Classes/UIImage+WebP.h index b127c34..45d9d20 100644 --- a/SDWebImageWebPCoder/Classes/UIImage+WebP.h +++ b/SDWebImageWebPCoder/Classes/UIImage+WebP.h @@ -6,6 +6,7 @@ * file that was distributed with this source code. */ +@import UIKit; #import // This category is just use as a convenience method. For more detail control, use methods in `UIImage+MultiFormat.h` or directlly use `SDImageCoder` From 16ef0cf1a751ee4c652ed0a3116604ed27510ea1 Mon Sep 17 00:00:00 2001 From: Akira Date: Tue, 21 May 2019 01:21:19 +0900 Subject: [PATCH 2/2] Use @import --- SDWebImageWebPCoder/Classes/SDImageWebPCoder.h | 2 +- SDWebImageWebPCoder/Classes/UIImage+WebP.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SDWebImageWebPCoder/Classes/SDImageWebPCoder.h b/SDWebImageWebPCoder/Classes/SDImageWebPCoder.h index 7729681..4a02ddd 100644 --- a/SDWebImageWebPCoder/Classes/SDImageWebPCoder.h +++ b/SDWebImageWebPCoder/Classes/SDImageWebPCoder.h @@ -7,7 +7,7 @@ */ #import -#import +@import SDWebImage; /** Built in coder that supports WebP and animated WebP diff --git a/SDWebImageWebPCoder/Classes/UIImage+WebP.h b/SDWebImageWebPCoder/Classes/UIImage+WebP.h index 45d9d20..b935d2f 100644 --- a/SDWebImageWebPCoder/Classes/UIImage+WebP.h +++ b/SDWebImageWebPCoder/Classes/UIImage+WebP.h @@ -6,8 +6,7 @@ * file that was distributed with this source code. */ -@import UIKit; -#import +@import SDWebImage; // This category is just use as a convenience method. For more detail control, use methods in `UIImage+MultiFormat.h` or directlly use `SDImageCoder` @interface UIImage (WebP)