badrinathvm / StepperView

SwiftUI iOS component for Step Indications.

Home Page:https://badrinathvm.github.io/StepperView/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use with horizontal scrollview

wong-kene opened this issue · comments

I need to use stepperview with 9 steps. So i need a scrollview because width of stepperview more than device width
i try to add scrollview but the result show blank view.
How to do this case?

Thanks

Hi, @wong-kene Thank you so much for checking out StepperView U need to set the .frame(height: constantValue) to get the component visible. See the below gif

Code Reference: https://github.com/badrinathvm/StepperView/blob/master/Example/StepperView/ExampleView7.swift#L33-L42

ScrollView_StepperView

@wong-kene Let me know if u need any more information. Happy to solve them again. Thank you so much for using StepperView. Also do let me know which app u are using so that I can add it to the readme. That will benefit everyone a lot.

hi @badrinathvm thaks for your response and sory for my late reply

i tried your code, it has been worked nicely on IOS 14. but not working on IOS 13, just show blank screen

Let me check quickly on iOS13 and update you shortly.