Skip to content

Object View

FUIObjectView

open class FUIObjectView: FUIObjectViewBase, FUIObjectViewComponent, FUIIconsComponent

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.substatusText = "Active"
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.preserveIconStackSpacing = true
view.preserveDetailImageSpacing = true
view.detailImageViewSize = CGSize(width: 45, height: 45)
view.isLimitingHeightToMainContent = false
view.isApplyingSplitPercent = true
view.splitPercent = 0.4

Theming

Supported ObjectView class paths:

1
fdlFUIObjectView {}

Supported ObjectView attributes:

1
2
tint-color (Color)
background-color (Color)

Supported Text class paths:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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:

1
2
3
4
5
6
font-color (Color)
font-name (FontName)
font-style (UIFontTextStyle)
font-size (Number)
text-align (TextAlign)
text-line-clamp (Integer)

Supported ImageView class paths:

1
2
3
fdlObjectView_detailImageView {}
fdlObjectView_statusImageView {}
fdlObjectView_substatusImageView {}

Supported ImageView attributes:

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

Additional supported style classes

1
2
3
fdlFontStyle_headline {}           // deprecated
fdlFontStyle_subheadline {}        // deprecated
fdlFontStyle_body {}               // deprecated

Last update: December 8, 2020