NumericAssistant
@MainActor
public final class NumericAssistant<TargetType> : ValueAssistant where TargetType : AnyObject
NumericAssistant provides support for top-level properties on the target object which are numeric values. This class supports all numeric types which conform to either BinaryFloatingPoint or BinaryInteger, as well as NSNumber.
-
Declaration
Swift
@MainActor public var isAdditive: Bool -
Declaration
Swift
@MainActor public var additiveWeighting: Double { get set } -
Declaration
Swift
@MainActor public func generateProperties<StateType>(targetObject target: TargetType, state: MotionState<TargetType, StateType>) throws -> [PropertyData<TargetType>] -
Declaration
Swift
@MainActor public func update(properties: [PropertyData<TargetType> : Double], targetObject: TargetType) -
Declaration
Swift
@MainActor public func supports(_ object: Any) -> Bool -
Declaration
Swift
@MainActor public func acceptsKeypath(_ object: AnyObject) -> Bool
View on GitHub