Class YMKCompositeIcon

Combines multiple icons into one.

Instance Methods

- removeAll

Removes all layers.

- removeIconWithName:

Removes the named layer.

- setIconStyleWithName:style:

Changes the icon style for a specific layer.

- setIconWithName:image:style:

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

- setIconWithName:image:style:callback:

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

Properties

valid

Tells if this object is valid or no.

Method Detail

-removeAll

- (void)removeAll

Removes all layers.

-removeIconWithName:

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

Removes the named layer.

-setIconStyleWithName:style:

- (void)setIconStyleWithName:(nonnull NSString *)name
                       style:(nonnull YMKIconStyle *)style 

Changes the icon style for a specific layer.

-setIconWithName:image:style:

- (void)setIconWithName:(nonnull NSString *)name
                  image:(nonnull UIImage *)image
                  style:(nonnull YMKIconStyle *)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 YMKIconStyle *)style
               callback:(nonnull YMKCallback)callback 

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

Parameters:
onFinished

Called when an icon is loaded.

Property Detail

valid

(assign, 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.