Fix that using `NS_TYPED_ENUM` on `SDImageFormat` cause the existing Swift API naming changed
This commit is contained in:
parent
aff324b0d0
commit
cb8879f56a
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue