FUIObjectView

Base view of FUIObjectTableViewCell. Standard Fiori control for rendering business object data.

Example Initialization and Configuration

let view = FUIObjectView()
view.detailImage = UIImage(named: <#image#>)
view.headlineText = "Edgar Scissorhands"
// To enable a default gradient layer behind the placeholder text.
view.detailImageView.isGradientLayerEnabled = true
// Set placeholder text.
view.detailImageView.placeholder.text = "This is a placeholder"
view.subheadlineText = "Lorem ipsum datil es iosin Lotios nsiqok"
view.footnoteText = "Here is some footer text about Edward"
view.statusImageView.image = UIImage(named: <#image#>)
view.statusDisplayMode = .both
view.substatusDisplayMode = .both
view.statusText = "Status Text"
view.substatusText = "Active"
view.showDescriptionInCompact = true
view.descriptionText = "This text is only visible when the cell is in regular horizontal size class."
view.iconImages = ["1", FUIIconLibrary.indicator.veryHighPriority.withRenderingMode(.alwaysTemplate)]
view.horizontalIcons = [UIImage(named: <#image#>), UIImage(named: <#image#>)]
view.preserveIconStackSpacing = true
view.preserveDetailImageSpacing = true
view.detailImageViewSize = CGSize(width: 45, height: 45)
view.isLimitingHeightToMainContent = false
view.isApplyingSplitPercent = true
view.splitPercent = 0.4
view.tags = [FUITag(title: "Tag - 1"), FUITag(title: "Tag - 2"), FUITag(title: "Tag - 3")]
view.avatars = [UIImage(named: "imageName"), UIImage(named: "imageName")]
view.avatarSize = CGSize(width: 30, height: 30)
view.indicatorImageView.image = UIImage(name: "imageName")
view.indicatorImageViewSize = CGSize(width: 16, height: 16)
view.footnoteIcons = [FUIIconLibrary.indicator.veryHighPriority.withRenderingMode(.alwaysTemplate), "+2"]
view.actionButton.isHidden = false
view.actionButton.setTitle("Button", for: .normal)

Theming

Supported ObjectView class paths:

fdlFUIObjectView {}

Supported ObjectView attributes:

tint-color (Color)
background-color (Color)

Supported Text class paths:

fdlObjectCell_headlineLabel {}     // deprecated
fdlObjectCell_subheadLabel {}      // deprecated
fdlObjectCell_footnoteLabel {}     // deprecated
fdlObjectCell_statusLabel {}       // deprecated
fdlObjectCell_substatusLabel {}    // deprecated
fdlObjectCell_descriptionLabel {}  // deprecated
fdlFUIObjectView_headlineLabel {}
fdlFUIObjectView_subheadlineLabel {}
fdlFUIObjectView_footnoteLabel {}
fdlFUIObjectView_statusLabel {}
fdlFUIObjectView_substatusLabel {}
fdlFUIObjectView_descriptionLabel {}

Supported Text attributes:

font-color (Color)
font-name (FontName)
font-style (UIFontTextStyle)
font-size (Number)
text-align (TextAlign)
text-line-clamp (Integer)

Supported ImageView class paths:

fdlObjectView_detailImageView {}
fdlObjectView_statusImageView {}
fdlObjectView_substatusImageView {}

Supported ImageView attributes:

image-name (Image)
tint-color (Color)

Supported BUTTON class paths:

fdlFUIObjectView_actionButton {}

Supported BUTTON properties:

image: Image;
tint-color: Color;

Additional supported style classes

fdlFontStyle_headline {}           // deprecated
fdlFontStyle_subheadline {}        // deprecated
fdlFontStyle_body {}               // deprecated
  • List of tag instances.

    Declaration

    Swift

    @MainActor
    public var tags: [FUITag] { get set }
  • Declaration

    Swift

    @MainActor
    public var numberOfTagLines: Int { get set }
  • Label property configuration for headline content.

    Remark

    a UILabel will not be rendered in the view hierarchy at runtime; text and configurations will produce an NSAttributedString.

    Declaration

    Swift

    @MainActor
    lazy public private(set) var headlineLabel: FUILabel { get set }
  • Label property configuration for subheadline content.

    Remark

    a UILabel will not be rendered in the view hierarchy at runtime; text and configurations will produce an NSAttributedString.

    Declaration

    Swift

    @MainActor
    lazy public private(set) var subheadlineLabel: FUILabel { get set }
  • Label property configuration for footnote content.

    Remark

    a UILabel will not be rendered in the view hierarchy at runtime; text and configurations will produce an NSAttributedString.

    Declaration

    Swift

    @MainActor
    lazy public private(set) var footnoteLabel: FUILabel { get set }
  • Label property configuration for description content.

    Remark

    a UILabel will not be rendered in the view hierarchy at runtime; text and configurations will produce an NSAttributedString.

    Declaration

    Swift

    @MainActor
    lazy public private(set) var descriptionLabel: FUILabel { get set }
  • Label property configuration for status content.

    Remark

    a UILabel will not be rendered in the view hierarchy at runtime; text and configurations will produce an NSAttributedString.

    Declaration

    Swift

    @MainActor
    lazy public private(set) var statusLabel: FUILabel { get set }
  • Label property configuration for substatus content.

    Remark

    a UILabel will not be rendered in the view hierarchy at runtime; text and configurations will produce an NSAttributedString.

    Declaration

    Swift

    @MainActor
    lazy public private(set) var substatusLabel: FUILabel { get set }
  • ImageView property configuration for statusImage content.

    Remark

    a UIImageView will not be rendered in the view hierarchy at runtime; text and configurations will produce an NSTextAttachment, rendered in an NSAttributedString.

    Declaration

    Swift

    @MainActor
    lazy public private(set) var statusImageView: FUIImageView { get set }
  • ImageView property configuration for substatusImage content.

    Remark

    a UIImageView will not be rendered in the view hierarchy at runtime; text and configurations will produce an NSTextAttachment, rendered in an NSAttributedString.

    Declaration

    Swift

    @MainActor
    lazy public private(set) var substatusImageView: FUIImageView { get set }
  • FUIGlyphImages (UIImage or String) which are rendered in an icon stack.

    Declaration

    Swift

    @MainActor
    public var iconImages: [FUIGlyphImage] { get set }
  • FUIGlyphImages (UIImage or String) maximum 4 icons which are rendered in an horizontal icon stack in statusView.

    Declaration

    Swift

    @MainActor
    public var horizontalIcons: [FUIGlyphImage] { get set }
  • The rating for FUIRatingControl content.

    Declaration

    Swift

    @MainActor
    public var rating: Int? { get set }
  • Average rating value for FUIRatingControl component

    Declaration

    Swift

    @MainActor
    public var averageRating: Float? { get set }
  • Indicator to display the leading rating label for the FUIRatingControl component

    Declaration

    Swift

    @MainActor
    public var showsRatingLeadingLabel: Bool
  • Indicator to display the trailing rating label for the FUIRatingControl component

    Declaration

    Swift

    @MainActor
    public var showsRatingTrailingLabel: Bool
  • Review count for FUIRatingControl component

    Declaration

    Swift

    @MainActor
    public var ratingReviewCount: Int?
  • Review count ceiling for FUIRatingControl component

    Declaration

    Swift

    @MainActor
    public var ratingReviewCountCeiling: Int?
  • Format of the leading label for FUIRatingControl component

    Declaration

    Swift

    @MainActor
    public var ratingLeadingLabelFormat: String?
  • Format of the trailing label for FUIRatingControl component

    Declaration

    Swift

    @MainActor
    public var ratingTrailingLabelFormat: String?
  • Indicator to show large size for FUIRatingControl component

    Declaration

    Swift

    @MainActor
    public var isLargeRatingSize: Bool