AdmiralSwiftUI Chat UploadImageView - admiral-team/admiralui-ios GitHub Wiki

Overview

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

Code

public var body: some View {
    let testModel = UploadImageModel(
        isLoading: .constant(true),
        time: "14:52",
        backgroundImage: nil,
        uploadStatus: .read
    )
     UploadImageView(
         model: testModel,
         cornersStyle: .rightSide
     )
}

You can create a UploadImageView by specifying the following parameters in the initializer

- model - Model with parameters to build view.
- cornersStyle - Parameter that used to set up corner style of view.

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.