AdmiralSwiftUI Chat UploadDocumentGrid - admiral-team/admiralui-ios GitHub Wiki
Overview
UploadDocumentGrid
- the component that presents a view container for UploadDocumentView.
Code
public var body: some View {
let testModelThree = UploadDocument(
style: .accent,
progressStyle: .accent,
state: .download,
fileName: "At breakpoint boundaries, mini units divide.pdf",
fileSize: "65,6 МБ",
time: "14:52"
)
let testModelThree = UploadDocument(
style: .accent,
progressStyle: .accent,
state: .download,
fileName: "At breakpoint boundaries, mini units divide.pdf",
fileSize: "65,6 МБ",
time: "14:52"
)
UploadDocumentGrid(documentsList: [testModel, testModelThree], direction: .right)
}
You can create a UploadDocumentGrid
by specifying the following parameters in the initializer
- documentsList: [UploadDocument] - an array with UploadDocument models
- direction: direction message
Live Example
To run live demo with UploadDocumentGrid
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 apull request
in our project. You can read more about this in the Github documentation.