Paragraph SwiftUI - admiral-team/admiralui-ios GitHub Wiki

Struct

A group of text components exists in several variants.


Declaration

public struct ParagraphView: View

Overview

A group of text components exists in several variants

Configure a ParagraphView with leading alignment and check image:

 ParagraphView(
   title: "Title",
   paragraphImageType: .check,
   textAligment: .leading,
   paragraphStyle: .primary
 )

Configure a ParagraphView with leading alignment and point image:

 ParagraphView(
   title: "Title",
   paragraphImageType: .point,
   textAligment: .leading,
   paragraphStyle: .secondary
 )

Configure a ParagraphView with leading alignment:

 ParagraphView(
   title: "Title",
   textAligment: .leading,
   paragraphStyle: .primary
 )

Configure a ParagraphView with center alignment:

 ParagraphView(
   title: "Title",
   textAligment: .center,
   paragraphStyle: .secondary
 )

Configure a ParagraphView with center alignment and custom trailing image:

 ParagraphView(
   title: "Title",
   trailingImage: Image("Your image"),
   textAligment: .center,
   paragraphStyle: .secondary
 )

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.