-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathExampleView12.swift
More file actions
34 lines (30 loc) · 1.25 KB
/
ExampleView12.swift
File metadata and controls
34 lines (30 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// ExampleView12.swift
// StepperView
//
// Created by Venkatnarayansetty, Badarinath on 5/23/21.
// Copyright © 2021 CocoaPods. All rights reserved.
//
import SwiftUI
import StepperView
struct ExampleView12: View {
let steps = [ Text("Cart").font(.caption),
Text("Delivery Address").font(.caption),
Text("Order Summary").font(.caption),
Text("Payment Method").font(.caption),
Text("Shipping\nTracking\nDelivered\nReturn Label\nRate The Experience").font(.caption)]
let indicationTypes = [StepperIndicationType.custom(NumberedCircleView(text: "1")),
.custom(NumberedCircleView(text: "2")),
.custom(NumberedCircleView(text: "3")),
.custom(NumberedCircleView(text: "4")),
.custom(NumberedCircleView(text: "5"))]
var body: some View {
StepperView()
.addSteps(steps)
.indicators(indicationTypes)
.stepIndicatorMode(StepperMode.vertical)
.spacing(30)
.alignments([StepperAlignment.top, .top, .top, .top, .center])
.lineOptions(StepperLineOptions.custom(1, Colors.blue(.teal).rawValue))
}
}