UploadDocumentView SwiftUI - admiral-team/admiralui-ios GitHub Wiki

Struct

A view with progress indicator, title, status and file information.


Declaration

public struct UploadDocumentView: View

Overview

The component that presents a view with loader for uploading and downloading tasks.

Live example

Configure a Upload Document

To create an upload document create the model with parameters

let testModel = UploadDocument(
   state: .default,
   direction: .left,
   fileName: "File.pdf",
   fileSize: "65,6 МБ",
   time: "14:52",
   status: .sent
)
UploadDocumentView(model: testModel)

Active the uploading progress indicator by changing state to .loading

let testModel = UploadDocument(
   state: .loading,
)
UploadDocumentView(model: testModel)

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.