View
public extension View
Helper function of View
to operate on
-
Stores the height for each of column which will be passed as part of onPreference change parent view.
Declaration
Swift
func heightPreference(column: Int) -> some View
-
Stores the width for each of column which will be passed as part of onPreference change to parent view.
Declaration
Swift
func widthPreference(column: Int) -> some View
-
Stores the width which will be passed as part of onPreference change to parent view.
Declaration
Swift
func widthKey() -> some View
-
Stores the height for each of column which will be passed as part of onPreference change to parent view.
Declaration
Swift
func heightKey() -> some View
-
Stores the height for each of column which will be passed as part of onPreferenceChange to parent view.
Declaration
Swift
func verticalHeightPreference(column: Int? = 0) -> some View
-
Stores the height for each of column which will be passed as part of onPreferenceChange to parent view.
Declaration
Swift
func pitstopHeightPreference(column: Int? = 0) -> some View
-
Stores CGRect data for each cell which will be passed as part of onPreferenceChange to the parent view.
Declaration
Swift
func cgRectPreference() -> some View
-
returns the alignment guide based on the alignemnt type.
Declaration
Swift
func setAlignment(type: StepperAlignment) -> some View
Parameters
type
sets the aligment guide.
-
returmns the alginment based ont he Stepper Alignment
Declaration
Swift
func getAlignment(type: StepperAlignment) -> VerticalAlignment
Parameters
type
StepperAlignment enum
-
Embeds the view in navigationView
Declaration
Swift
func embedINNavigationView() -> some View
-
Wrapper to AnyView
Declaration
Swift
func eraseToAnyView() -> AnyView
-
Returns either
top
,center
bottom
bound positionsDeclaration
Swift
func getYPosition(for alignment: StepperAlignment) -> CGFloat
-
Configures Steps to environment value
Declaration
Swift
func addSteps<Cell>(_ steps: [Cell]) -> some View where Cell : View
-
Sets alignments to environment value
Declaration
Swift
func alignments(_ alignments: [StepperAlignment] = []) -> some View
-
Sets lifecycle status to environment value
Declaration
Swift
func stepLifeCycles(_ lifecycle: [StepLifeCycle] = [.completed, .completed, .completed]) -> some View
-
Sets indicators to environment value
Declaration
Swift
func indicators<Cell>(_ indicators: [StepperIndicationType<Cell>] = []) -> some View where Cell : View
-
Configures step Indicator mode to environment value
Declaration
Swift
func stepIndicatorMode(_ mode: StepperMode) -> some View
-
Configures spacing to environment value
Declaration
Swift
func spacing(_ value: CGFloat) -> some View
-
Configures auto spacing to environment value
Declaration
Swift
func autoSpacing(_ value: Bool) -> some View
-
Configures edgeInsets to environment value
Declaration
Swift
func stepperEdgeInsets(_ value: EdgeInsets) -> some View
-
Configures line options to environment value
Declaration
Swift
func lineOptions(_ options: StepperLineOptions) -> some View
-
Conditional modifier
Declaration
Swift
func ifTrue<Content>(_ conditional: Bool, content: (Self) -> Content) -> some View where Content : View
-
Custom behavior for pitstops
Declaration
Swift
func addPitStops(_ steps: [AnyView]) -> some View
Parameters
steps
list of pitstop step views
-
Custom behavior for pitstops
Declaration
Swift
func pitStopLineOptions(_ options: [StepperLineOptions]) -> some View
Parameters
steps
list of pitstop line options views
-
Custom behavior for pitstops
Declaration
Swift
func animateSteps(_ count: Int) -> some View
Parameters
steps
list of pitstop step views
-
Custom behavior for pitstops
Declaration
Swift
func loadingAnimationTime(_ time: Double) -> some View
Parameters
steps
list of pitstop step views
-
Method to add logging in View
Declaration
Swift
func log(_ log: String) -> EmptyView
Parameters
log
logging string to be displayed