Platforms to show: All Mac Windows Linux Cross-Platform

NSSymbolVariableColorEffectMBS class

Superclass: NSSymbolEffectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Controls MBS MacControls Plugin 25.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
A symbol effect that applies the Variable Color animation to symbol images.
Example
// animate the bars of a Wi-Fi symbol one after the other (macOS 14 or newer)
Var imageView As New NSImageViewMBS(20, 20, 64, 64)
imageView.image = NSImageMBS.imageWithSystemSymbolName("wifi", "Symbol")
Self.NSWindowMBS.contentView.addSubview imageView

Var effect As NSSymbolVariableColorEffectMBS = NSSymbolVariableColorEffectMBS.effect.effectWithIterative.effectWithReversing
imageView.addSymbolEffect(effect, NSSymbolEffectOptionsMBS.optionsWithRepeating)

The Variable Color animation replaces the opacity of variable layers in the symbol by a possibly repeating pattern that moves up and possibly back down the variable layers. It has no effect for non-variable color symbol images.

Requires macOS 14.0, iOS 17.0 or newer.
Subclass of the NSSymbolEffectMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Superclass NSSymbolEffectMBS

This class has no subclasses.

Some related classes:


The items on this page are in the following plugins: MBS MacControls Plugin.


NSSymbolScaleEffectMBS   -   NSSymbolWiggleEffectMBS


The biggest plugin in space...