AdmiralUIKit Views Chat UploadDocumentView - admiral-team/admiralui-ios GitHub Wiki
Overview
UploadDocumentView
- the component that presents a view with loader for uploading and downloading tasks.
Code
let uploadDocumentView = UploadDocumentView()
uploadDocumentView.state = .loading
uploadDocumentView.fileName = "File.pdf"
uploadDocumentView.fileSize = "282 MB"
uploadDocumentView.trackProgressStyle = .default
uploadDocumentView.direction = .left
uploadDocumentView.chatTime = "12:53"
You can create a UploadDocumentView with the zero frame rectangle by specifying the following parameters in init:
- state: UploadDocumentState - The current state of UploadDocumentView.
- direction: ChatDirection - The direction of chatBubbleStatusView.
- fileName: String? - The text of file name label.
- fileSize: String? - The text of file file size label.
- chatStatus: ChatStatus? - The status of chatBubbleStatusView.
- trackProgressStyle: ProgressViewStyle - Loading circle style.
- isAnimating: Bool - The flag that controls animation of trackView.
- chatTime: String? - The time of chatBubbleStatusView.
- progressCircleStyle: ProgressViewStyle? - The style of ProgressView.
- trackProgressStyle: ProgressViewStyle - The style of CircularProgressView.
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 apull request
in our project. You can read more about this in the Github documentation.