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 |
|
Supported ObjectView
attributes:
1 2 |
|
Supported Text
class paths:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Supported Text
attributes:
1 2 3 4 5 6 |
|
Supported ImageView
class paths:
1 2 3 |
|
Supported ImageView
attributes:
1 2 |
|
Additional supported style classes
1 2 3 |
|
Last update: April 14, 2021