AdmiralUIKit Views Chat UploadImageView - admiral-team/admiralui-ios GitHub Wiki

Overview

UploadImageView - the component that presents backgound image with loader for uploading and downloading tasks.

Code

let uploadImageView = UploadImageView()
 uploadDocumentView.state = .loading
 uploadDocumentView.trackProgressStyle = .default

You can create a UploadImageView with the zero frame rectangle by specifying the following parameters in init:

- state: UploadDocumentState - The current state of UploadDocumentView.
- isAnimating: Bool - The flag that controls animation of trackView.
- progressCircleStyle: ProgressViewStyle? - The style of ProgressView.
- trackProgressStyle: ProgressViewStyle - The style of CircularProgressView.

Live Example

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

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.

Simulator Screen Shot - iPhone 8 - 2022-08-23 at 15 14 51 Simulator Screen Shot - iPhone 8 - 2022-08-23 at 15 14 57