UIImage(FWAnimated)

@interface UIImage (FWAnimated)

UIImage+FWAnimated

  • 图片循环次数,静态图片始终是0,动态图片0代表无限循环

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger fw_imageLoopCount;
  • 是否是动图,内部检查images数组

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL fw_isAnimated;
  • 是否是向量图,内部检查isSymbolImage属性,iOS11+支持PDF,iOS13+支持SVG

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL fw_isVector;
  • 获取图片原始数据格式,未指定时尝试从CGImage获取,获取失败返回FWImageFormatUndefined

    Declaration

    Objective-C

    @property (nonatomic) FWImageFormat fw_imageFormat;