UploadingDocumentGrid SwiftUI - admiral-team/admiralui-ios GitHub Wiki
Class
A view that that presents a view container for UploadDocumentView
Declaration
public struct UploadDocumentGrid: View
Overview
The component displays grid view with number of UploadDocumentView components. This view can be located at the right edge and left edge.
The construction of this component occurs by passing number of models which are called UploadDocument. You can also set the time and status of this component by setting public propertiers.
Live demo
Configure a UploadDocumentGrid
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)
}
Changing the state of items
let testModelThree = UploadDocument(
style: .accent,
progressStyle: .accent,
state: .loading,
fileName: "At breakpoint boundaries, mini units divide.pdf",
fileSize: "65,6 МБ",
time: "14:52"
)
Contribution
You can help us to find bugs or ask us to add features.
- To start
issueplease use ready-made templates. - To make changes to the repository, you need to create a
forkof the project, make changes to the code and create apull requestin our project. You can read more about this in the Github documentation.