From 231b256cf041329eb03d4c8de618d7ccd8a4842b Mon Sep 17 00:00:00 2001 From: Badarinath Venkatnarayansetty Date: Fri, 24 Apr 2020 12:53:59 -0700 Subject: [PATCH] Updated read me for view modifiers for spacing and formatting --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4b77a69..9a2cf7e 100644 --- a/README.md +++ b/README.md @@ -78,12 +78,19 @@ var body: some View { } ``` ## Methods ( View Modifiers ) -- .addSteps(_ steps: [View]) : array of views to be rendered next to step Indicator -- .alignments(_ alignments: [StepperAlignment]) : optional defaults to .center, for custom options it can be either .top, .center, or .bottom sections -- .indicatorTypes(_ indicators:[StepperIndicationType]): enum provides the options to use .circle(color, width) , .image(Image, width) or .custom(AnyView) -- .lineOptions(_ options: StepperLineOptions): to customize the line for thickness and color options. -- .spacing(_ value: CGFloat): spacing between each of the step views. -- .stepIndicatorMode(_ mode: StepperMode): enum provides the option of vertical or horizontal node for display step indications. +```ruby +.addSteps(_ steps: [View]) : array of views to be rendered closer to indicator + +.alignments(_ alignments: [StepperAlignment]) : optional defaults to .center, available with custom options either .top, .center, .bottom sections + +.indicatorTypes(_ indicators:[StepperIndicationType]): enum provides the options to use .circle(color, width) , .image(Image, width) , .custom(AnyView) + +.lineOptions(_ options: StepperLineOptions): color, thickness line customization. + +.spacing(_ value: CGFloat): spacing between each of the step views. + +.stepIndicatorMode(_ mode: StepperMode): vertical, horizontal doisplay modes. +```

Refer Example for more details on usage of StepperView