ValueAssistantGroup
public class ValueAssistantGroup : ValueAssistant
The ValueAssistantGroup
class enables multiple ValueAssistant
objects to be attached to a single motion class.
-
Declaration
Swift
public var additive: Bool = false
-
Declaration
Swift
public var additiveWeighting: Double = 1.0
-
Declaration
Swift
private(set) public var assistants: [ValueAssistant] = []
-
Initializer.
Declaration
Swift
public convenience init(assistants: [ValueAssistant]? = [])
Parameters
assistants
An optional array of
ValueAssistant
objects to which the ValueAssistantGroup should delegateValueAssistant
method calls. -
Declaration
Swift
public required init()
-
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
public func add(_ assistant: ValueAssistant)
Parameters
assistant
A
ValueAssistant
object.
-
Declaration
Swift
public func generateProperties(targetObject target: AnyObject, propertyStates: PropertyStates) throws -> [PropertyData]
-
Declaration
Swift
public func retrieveValue(inObject object: Any, keyPath path: String) -> Double?
-
Declaration
Swift
public func updateValue(inObject object: Any, newValues: Dictionary<String, Double>) -> NSObject?
-
Declaration
Swift
public func retrieveCurrentObjectValue(forProperty property: PropertyData) -> Double?
-
Declaration
Swift
public func calculateValue(forProperty property: PropertyData, newValue: Double) -> NSObject?
-
Declaration
Swift
public func supports(_ object: AnyObject) -> Bool
-
Declaration
Swift
public func acceptsKeypath(_ object: AnyObject) -> Bool