ValueAssistantGroup
@MainActor
public final class ValueAssistantGroup : ValueAssistant
The ValueAssistantGroup
class enables multiple ValueAssistant
objects to be attached to a single motion class.
-
Declaration
Swift
@MainActor public var additive: Bool { get set }
-
Declaration
Swift
@MainActor public var additiveWeighting: Double { get set }
-
Updates the
additive
state of all childValueAssistant
objects in this group.Declaration
Swift
@MainActor public func updateAdditive(isAdditive: Bool)
Parameters
isAdditive
The new
additive
state to assign. -
An array of
ValueAssistant
objects that this group manages.Declaration
Swift
@MainActor private(set) public var assistants: [ValueAssistant] { get }
-
Initializer.
Declaration
Swift
@MainActor public init(assistants: [ValueAssistant]? = [])
Parameters
assistants
An optional array of
ValueAssistant
objects to which the ValueAssistantGroup should delegateValueAssistant
method calls.
-
Adds a
ValueAssistant
to the group.Note
The added assistant will be assigned the same values foradditive
andadditiveWeighting
as this group’s values.Seealso
additive, additiveWeightingDeclaration
Swift
@MainActor public func add(_ assistant: ValueAssistant)
Parameters
assistant
A
ValueAssistant
object.
-
Declaration
Swift
@MainActor public func generateProperties(targetObject target: AnyObject, propertyStates: PropertyStates) throws -> [PropertyData]
-
Declaration
Swift
@MainActor public func retrieveValue(inObject object: Any, keyPath path: String) -> Double?
-
Declaration
Swift
@MainActor public func updateValue(inObject object: Any, newValues: Dictionary<String, Double>) -> NSObject?
-
Declaration
Swift
@MainActor public func retrieveCurrentObjectValue(forProperty property: PropertyData) -> Double?
-
Declaration
Swift
@MainActor public func calculateValue(forProperty property: PropertyData, newValue: Double) -> NSObject?
-
Declaration
Swift
@MainActor public func supports(_ object: AnyObject) -> Bool
-
Declaration
Swift
@MainActor public func acceptsKeypath(_ object: AnyObject) -> Bool