HUBIcon
@protocol HUBIcon <NSObject>
Protocol defining the public API of an icon object
An icon is not renderable in of itself, but rather acts as a container for icon information, which
can be materialized into an image of any size. Images are resolved using the HUBIconImageResolver
passed when setting up HUBManager
.
-
The identifier of the icon. Can be used for custom image resolving.
Declaration
Objective-C
@property (readonly, copy, nonatomic) NSString *_Nonnull identifier;
-
Convert the icon into an image of a given size and color
Declaration
Objective-C
- (nullable UIImage *)imageWithSize:(CGSize)size color:(nonnull UIColor *)color;
Parameters
size
The size of the image to return
color
The color of the icon image to return