You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
amount is an optional binding Int value. It represents the amount to increment or decrement the count value when the user taps the "-" and "+" buttons or moves the central button left or right.
config is an instance of the Configuration struct which allows customization of the counter's appearance
The Configuration struct has the following properties:
minValue (default: 0): The minimum value that the counter can have.
maxValue (default: 999): The maximum value that the counter can have.
controlsContainerWidth (default: 300): The width of the controls container.
showAmountLabel (default: true): Whether to show the amount label.
amountLabelColor (default: .white): The text color of the amount label.
controlsColor (default: .white): The color of the controls.
labelBackgroundColor (default: .labelBackground): The background color of the amount label.
labelTextColor (default: .white) - The text color of the label.
controlsBackgroundColor (default: .controlsBackground): The background color of the controls.
controlsOnTapCircleColor (default: .white): The color of the controls' tap circle.
controlsBackgroundOverlayColor (default: .black): The background overlay color of the controls.
hapticsEnabled (default: true): A boolean value indicating whether haptic feedback should be enabled when interacting with the counter element. When set to true, the element will play custom haptic feedback using CHHapticEngine when the user taps the increment and decrement buttons or swipes on the central button. When set to false, no haptic feedback will be played.