MMKCompositeIcon

@interface MMKCompositeIcon : NSObject

Combines multiple icons into one.

Summary

Instance methods

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nonnull MMKIconStyle *)style;

Creates or resets a named layer with an icon and its style

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nonnull MMKIconStyle *)style
               callback:(nonnull MMKCallback)callback;

Creates or resets a named layer that contains an icon and its style

- (void)setIconStyleWithName:(nonnull NSString *)name
                       style:(nonnull MMKIconStyle *)style;

Changes the icon style for a specific layer

- (void)removeIconWithName:(nonnull NSString *)name;
Removes the named layer

- (void)removeAll;
Removes all layers

Properties

@property (nonatomic, readonly, getter=isValid) BOOL valid;
Tells if this object is valid or no

Instance methods

setIconWithName:image:style:

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nonnull MMKIconStyle *)style;

Creates or resets a named layer with an icon and its style.


setIconWithName:image:style:callback:

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nonnull MMKIconStyle *)style
               callback:(nonnull MMKCallback)callback;

Creates or resets a named layer that contains an icon and its style.

Parameters

onFinished

Called when an icon is loaded.


setIconStyleWithName:style:

- (void)setIconStyleWithName:(nonnull NSString *)name
                       style:(nonnull MMKIconStyle *)style;

Changes the icon style for a specific layer.


removeIconWithName:

- (void)removeIconWithName:(nonnull NSString *)name;

Removes the named layer.


removeAll

- (void)removeAll;

Removes all layers.


Properties

valid

@property (nonatomic, readonly, getter=isValid) BOOL valid;

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.