AdmiralSwiftUI Chat ProgressView - admiral-team/admiralui-ios GitHub Wiki

Overview

ProgressView - the component that used for showing view with center loading indicator.

Code

public var body: some View {
    ProgressView(
        style: .accent
    )
}

You can create a ProgressView by specifying the following parameters in the initializer

 - style: ProgressViewStyle - The style of progress spinner.
 - progressViewSize: ProgressViewSize - the size for progress spinner.

@available(iOS 14.0.0, *)
public enum ProgressViewStyle: Int {
    case `default`
    case accent
    case staticWhite
}

@available(iOS 14.0.0, *)
public enum ProgressViewSize {
    case small
    case large
    case medium
}

Live Example

To run live demo with ProgressView open Xcode and run project with Example target. Then in the Chat -> ProgressView

Contribution

You can help us to find bugs or ask us to add features.

  • To start issue please use ready-made templates.
  • To make changes to the repository, you need to create a fork of the project, make changes to the code and create a pull request in our project. You can read more about this in the Github documentation.