NumberedCircleView

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
public struct NumberedCircleView : View

Circle view with text inside for Step Indicator

  • text to be paced inside the circle

    Declaration

    Swift

    var text: String
  • width of the step indicator

    Declaration

    Swift

    var width: CGFloat
  • color of the step indicator

    Declaration

    Swift

    var color: Color
  • delay for the animation to happen

    Declaration

    Swift

    var delay: Double
  • flag to tigger animation or not.

    Declaration

    Swift

    var triggerAnimation: Bool
  • animation state to render the view

    Declaration

    Swift

    @State
    var animate: Bool { get nonmutating set }
  • loading time for animations

    Declaration

    Swift

    @Environment
    var loadingTime: Double { get }
  • initilazes text , width, color , delay and triggerAnimation

    Declaration

    Swift

    public init(text: String, width: CGFloat = 30.0, color: Color = Colors.teal.rawValue,
                delay:Double = 0.0,
                triggerAnimation:Bool = false)
  • provides the content and behavior of this view.

    Declaration

    Swift

    public var body: some View { get }