Skip to content

CLASS

ExpansionFeedbackNode

public class ExpansionFeedbackNode: SKShapeNode, TargetFeedback

Properties

diameter

public var diameter: CGFloat

color

public var color: UIColor = .red

nodeScale

public var nodeScale: CGFloat = 1.2

Methods

init(diameter:color:)

required public init(diameter: CGFloat, color: UIColor)

updateFeedback(value:completion:)

public func updateFeedback(value: CGFloat, completion: @escaping () -> (Void) = {})

Updates node size depending on the feedback value and the scaleValue - Parameter value: The feedback value - Parameter completion: Completion of the animation

Parameters

Name Description
value The feedback value
completion Completion of the animation