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

Overview

UploadDocumentView - the component that presents a view with loader for uploading and downloading tasks.

Code

public var body: some View {
     static let testModel = UploadDocument(
         state: .loading,
         direction: .left,
         fileName: "File.pdf",
         fileSize: "65,6 МБ",
         time: "14:52",
         status: .sent
     )
     UploadDocumentView(model: testModel)
 }

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

 - model: UploadDocument - the model with default settings for view
 - cornerStyle: UploadDocumentCornersStyle - corner style of view

Live Example

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

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.