kiwicom / orbit-swiftui

Kiwi.com Orbit design system library
MIT License
134 stars 24 forks source link

Create loading version of `InputField` #290

Open PavelHolec opened 2 years ago

PavelHolec commented 2 years ago

A loading() (similar to modifiers like disabled()) should be supported on components that may need a loading indicator (InputField, Button,...)

It probably should also contain a disabled() modifier inside by default.

Signature

loading(_ isLoading: Bool, isDisabled: Bool = true)

Kiwi.com code

InputFieldLoadingModifier.swift

sjavora commented 1 year ago

Depends on iOS 14 only ProgressView