UploadImageGridView - admiral-team/admiralui-ios GitHub Wiki

Class

A view that display container with UploadingImageView components


Declaration

public final class UploadImageGridView: UIView, AnyAppThemable

Overview

The component displays grid view with number of UploadingImageView 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 UploadImageItem. You can also set the time and status of this component by setting public propertiers.

Live demo

Configure a UploadImageGridView

let models = [
 UploadImageItem(
   image: Asset.Chat.photo.image,
   style: .default,
   state: .default
 ),
 UploadImageItem(
   image: Asset.Chat.photo.image,
   style: .default,
   state: .default
 )
]

let uploadImageGridView = UploadImageGridView()
uploadImageGridView.models = models
uploadDocumentView.direction = .left
uploadDocumentView.chatStatus = .receive
uploadDocumentView.chatTime = "12:53"

Changing the state of items

let models = [
 UploadImageItem(
   image: Asset.Chat.photo.image,
   style: .default,
   state: .loading
 ),
 UploadImageItem(
   image: Asset.Chat.photo.image,
   style: .default,
   state: .loading
 )
]

let uploadImageGridView = UploadImageGridView()
uploadImageGridView.models = models
uploadDocumentView.direction = .left
uploadDocumentView.chatStatus = .receive
uploadDocumentView.chatTime = "12:53"

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.