Fix that using `NS_TYPED_ENUM` on `SDImageFormat` cause the existing Swift API naming changed

This commit is contained in:
DreamPiggy 2018-08-01 20:52:50 +08:00
parent aff324b0d0
commit cb8879f56a
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ static const SDImageFormat SDImageFormatHEIC = 5;
* @param format Format as SDImageFormat
* @return The UTType as CFStringRef
*/
+ (nonnull CFStringRef)sd_UTTypeFromImageFormat:(SDImageFormat)format CF_RETURNS_NOT_RETAINED;
+ (nonnull CFStringRef)sd_UTTypeFromImageFormat:(SDImageFormat)format CF_RETURNS_NOT_RETAINED NS_SWIFT_NAME(sd_UTType(from:));
/**
* Convert UTTyppe to SDImageFormat

View File

@ -89,7 +89,7 @@ FOUNDATION_EXPORT SDImageCoderOption _Nonnull const SDImageCoderWebImageContext;
@param format The image format
@return YES if this coder can encode the image, NO otherwise
*/
- (BOOL)canEncodeToFormat:(SDImageFormat)format;
- (BOOL)canEncodeToFormat:(SDImageFormat)format NS_SWIFT_NAME(canEncode(to:));
/**
Encode the image to image data.