MMKCompositeIcon
class MMKCompositeIcon : NSObject |
Combines multiple icons into one.
Summary
Instance methods
func setIconWithName( name: String, image: UIImage, style: MMKIconStyle_) |
func setIconWithName(_ name: String, |
func setIconStyleWithName( name: String, style: MMKIconStyle_) |
func remove(withName name: String) |
func removeAll() |
Properties
var isValid: Bool { get } |
Instance methods
setIconWithName(_:image:style:)
func setIconWithName( name: String, image: UIImage, style: MMKIconStyle_) |
Creates or resets a named layer with an icon and its style.
setIconWithName(_:image:style:callback:)
func setIconWithName(_ name: String, |
Creates or resets a named layer that contains an icon and its style.
Parameters |
|
onFinished |
Called when an icon is loaded. |
setIconStyleWithName(_:style:)
func setIconStyleWithName( name: String, style: MMKIconStyle_) |
Changes the icon style for a specific layer.
remove(withName:)
func remove(withName name: String) |
Removes the named layer.
removeAll()
func removeAll() |
Removes all layers.
Properties
isValid
var isValid: Bool { get } |
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.