CGStructAssistant
@MainActor
public final class CGStructAssistant<TargetType> : ValueAssistant where TargetType : AnyObject
CGStructAssistant provides support for several Core Graphics struct types, including CGPoint, CGSize, CGRect, CGVector, CGAffineTransform, as well as QuartzCore’s CATransform3D type. It also provides support for the NSNumber type.
-
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