Skip to content

How to use StepperView

Badarinath Venkatnarayansetty edited this page Apr 23, 2020 · 3 revisions

This SwiftUI iOS cocoapods library is used for indicating step actions for series of steps involved for any task. For eg: if you wanna illustrate the steps for collecting cash from an ATM , steps involved for any loan application. etc..

Here’s the library which does the work with just couple of lines which accepts below View Modifiers

var body: some View {
         StepperView()
            .addSteps([Text("Account"), Text("MemberShip"))
            .indicators([.center,.center])
            .stepIndicatorMode(StepperMode.horizontal)
            .spacing(50)
            .lineOptions(StepperLineOptions.custom(1, Colors.blue(.teal).rawValue))
}
Clone this wiki locally