Object views
-
FUIObjectTableViewCell
is the defaultUITableViewCell
subclass for presenting business object data in the Fiori Design Language.Views Available in FUIObjectTableViewCell:
detailImageView
: a FUIImageView view added to the cell unlesscell.preserveDetailImageSpacing
is set tofalse
. The view is right toiconsStackView
and left toheadlineLabel
. The image is scaled to fit with fixed aspect. The image size is set to45px
by45px
. Usecell.detailImage
to set imageheadlineLabel
: an UILabel view is always displayed and intended to display a heandline text in the cell. Usecell.headlineText
to set label textsubheadlineLabel
: an UILabel view is added 3px belowheadlineLabel
to the cell. Use `cell.subheadlineText" to set label textfootnoteLabel
: an UILabel view is added 3px belowsubheadLabel
to the cell. Use `cell.footnoteText" to set label textdescriptionLabel
: an UILabel view tended to display a long text in the cell. It gets displayed only in regular view. The view is right toheadlineLabel
and left tostatusImageView
(orstatusLabel
). Use `cell.descriptionText" to set label textstatusImageView
-or-statusLabel
: an UIImageView/UILabel added to the cell for status.statusImageView
gets added with size16px
by16px
. The view is left to accessory view and right todescriptionLabel
. Usecell.statusText
to set label text orcell.statusImage
to set image.substatusImageView
-or-substatusLabel
: an UIImageView/UILabel added to the cell under status.substatusImageView
gets added with size16px
by16px
. Usecell.substatusText
to set label text orcell.substatusImage
to set image. An error will be logged whenaccessoryType
is not.none
nor.disclosureIndicator
, then setting a substatus label text or substatus image as this setting breaks Fiori Design Language pattern.
Usage
Data Binding:
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: FUIObjectTableViewCell.reuseIdentifier, for: indexPath as IndexPath) as! FUIObjectTableViewCell cell.detailImage = UIImage(named: "image.png") cell.headlineText = "Business Object Title" cell.subheadlineText = "Business Object Subtitle" cell.footnoteText = "Business Object Footnote" cell.statusImageView.image = FUIIconLibrary.indicator.veryHighPriority.withRenderingMode(.alwaysTemplate) cell.substatusText = "Status Description" cell.descriptionText = "Business Object Description (long)" cell.iconImages = ["1"] cell.accessoryType = .disclosureIndicator return cell }
Remark
The labels’numberOfLines
property is supported, for limiting the number of lines of the text which will be displayed. If thetext
orattributedText
includes newline characters (e.g.:\n
,\r
), then the best practice is to precede those characters by a space, so that the ellipsis indicator does not obscure any text which would otherwise be visible.Icons layout:
Icons may be supplied to the
iconImages
property which conform to theFUIGlyphImage
protocol. These include:UIImage
,FUIAttributedGlyphImage
, andString
. It is recommended when supplying image types, to ensure that the rendering mode isalwaysTemplate
, so that the default tint color will be applied.The default dimensions of the icon images are
12 x 12pts
. It is possible to increase the width allocated to the icons by increasing the value of theiconsColumnWidth: CGFloat
property, though this is generally discouraged, unless it is necessary to support multiple digits of aString
type (e.g.:iconImages = ["24"]
may requireiconsColumnWidth = 20.0
).In SDK version 3.0, the Fiori Design Guidelines are updated, and now direct that when possible, the icons should be displayed within the leading margin. This will occur automatically, when the leading margin is
>= 10 + iconsColumnWidth
. As a result, most device/orientation layouts will apply this by default; to ensure that all view controllers enforce this minimum layout margin, a developer choose to set the layout margin directly on a parentUITableView
, or, override thesystemMinimumLayoutMargins: NSDirectionalEdgeInsets
property.override var systemMinimumLayoutMargins: NSDirectionalEdgeInsets { var system = super.systemMinimumLayoutMargins system.leading = 22 system.trailing = 22 return system }
The
preserveIconStackSpacing: Bool
property may be used to ensure that the insertion point of the view to the right of the icons layout (detailImageView
, orheadlineLabel
) has a consistent x-coordinate, regardless of whether a particular cell contains icons. This property is ignored, if the icons are displayed within the margins, as the insertion point of the subsequent view will always belayoutMargins.left
.AccessoryView and EditingAccessoryView
Standard
UITableViewCell
accessoryView
,accessoryType
, andeditingAccessoryView
are still supported.The
actionAccessoryView
is a specialized view that takes the place of the usualaccessoryView
. This view is aFUISingleActionAccessoryView
that shows an interactable button or progressView. Changing theactionAccessoryType
changes the view that is shown. By default, theactionAccessoryType
is set to.none
.The
actionAccessoryView
can be visible during editing mode whenisActionAccessoryAlsoEditingActionAccessory
is set totrue
. By default,isActionAccessoryAlsoEditingActionAccessory
istrue
.cell.isActionAccessoryAlsoEditingActionAccessory = false cell.actionAccessoryType = .button cell.actionAccessoryView?.button.style = .fuiRounded cell.actionAccessoryView?.button.titleLabel?.preferredMaxLayoutWidth = 75 cell.actionAccessoryView?.button.setTitle("Follow", for: .normal) cell.actionAccessoryView?.button.setTitle("Unfollow", for: .selected) cell.actionAccessoryView?.button.isPersistentSelection = true cell.actionAccessoryView?.button.isPreservingPreferredMaxLayoutWidth = true cell.actionAccessoryView?.button.didSelectHandler = { button in <#selection handler#> }
Theming
Support
TableViewCell
class paths:fdlFUIObjectTableViewCell {}
Supported
TableViewCell
attributes:tint-color (Color) background-color (Color) background-color-selected (Color)
Supported
Text
class paths:fdlFUIObjectTableViewCell_headlineLabel {} fdlFUIObjectTableViewCell_subheadlineLabel {} fdlFUIObjectTableViewCell_footnoteLabel {} fdlFUIObjectTableViewCell_statusLabel {} fdlFUIObjectTableViewCell_substatusLabel {} fdlFUIObjectTableViewCell_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:fdlObjectTableViewCell_detailImageView {} fdlObjectTableViewCell_statusImageView {} fdlObjectTableViewCell_substatusImageView {}
Supported
ImageView
attributes:
See moreimage-name (Image) tint-color (Color)
Declaration
Swift
@IBDesignable open class FUIObjectTableViewCell : FUIBaseDrawingTableViewCell<FUIObjectView>
-
FUIObjectCollectionViewCell
is an Interface-Builder-designable UI component that extendsUICollectionViewCell
for showing information of an object. It contains a set of default content views which are common to Fiori Design Language Object Cell types, with the associated constraint implementations and handling for size classes.Views Available in FUIObjectCollectionViewCell:
iconsStackView
: an UIStackView view expected to contain a vertical stack of icons/images in its view content. The view is added to the cell unlesscell.preserveIconStackSpacing
is set tofalse
. This is the first view in the cell and can be left todetailImageView
. Usecell.iconImages
to add image(s) to the stack view. Each icon/image size is set to be16px
by16px
.detailImageView
: a FUIImageView view added to the cell unlesscell.preserveDetailImageSpacing
is set tofalse
. The view is right toiconsStackView
and left toheadlineLabel
. The image is scaled to fit with fixed aspect. The image size is set to45px
by45px
. Usecell.detailImage
to set imageheadlineLabel
: an UILabel view is always displayed and intended to display a heandline text in the cell. Usecell.headlineText
to set label textsubheadlineLabel
: an UILabel view is added 3px belowheadlineLabel
to the cell. Use `cell.subheadlineText" to set label textfootnoteLabel
: an UILabel view is added 3px belowsubheadLabel
to the cell. Use `cell.footnoteText" to set label textstatusImageView
/statusLabel
: an UIImageView/UILabel added to the cell for status.statusImageView
gets added with size16px
by16px
. The view is left to accessory view and right todescriptionLabel
. Usecell.statusText
to set label text orcell.statusImage
to set image.substatusImageView
/substatusLabel
: an UIImageView/UILabel added to the cell under status.substatusImageView
gets added with size16px
by16px
. Usecell.substatusText
to set label text orcell.substatusImage
to set image. An error will be logged whenaccessoryType
is not.none
nor.disclosureIndicator
, then setting a substatus label text or substatus image as this setting breaks Fiori Design Language pattern.accessoryView
: an UIView added to the view whencell.accessoryType
is not.none
. The view is an UIButton customized in FUIObjectCell and is aligned to the base-line ofheadlineLabel
when the type is.disclosureIndicator
. For any other types, it’s vertically center-aligned and created by Apple native SDK.
Example Initialization and Configuration:
See morepublic func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell(withReuseIdentifier: FUIObjectCollectionViewCell.reuseIdentifier, for: indexPath) as! FUIObjectCollectionViewCell cell.headlineText = "Issues: \(issues[indexPath.row])" cell.subheadlineText = "Available on Jan 31st" cell.footnoteText = "Delivered by San Ramon team, from the new Office Space" cell.statusText = "Available" cell.substatusImage = #imageLiteral(resourceName: "ErrorIcon") cell.substatusImageView.tintColor = UIColor.preferredFioriColor(forStyle: .negative) return cell }
Declaration
Swift
open class FUIObjectCollectionViewCell : NibDesignableFUIBaseCollectionViewCell
-
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" 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: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)
Additional supported style classes
See morefdlFontStyle_headline {} // deprecated fdlFontStyle_subheadline {} // deprecated fdlFontStyle_body {} // deprecated
Declaration
Swift
@IBDesignable open class FUIObjectView : FUIDrawingView, FUIObjectViewComponent, FUIIconsComponent
-
View component used in
FUIObjectTableViewCell
. Typically not used directly by developer.This view appears as the accessoryView to the
FUIObjectTableViewCell
.Available:
progressView
: AFUISingleActionProgressIndicator
used to display progres. Toggle between the states by changing theactionAccessoryType
.button
: AFUISingleActionButton
displayed in theFUISingleActionAccessoryView
. This button’s width will not exceed 45% of the width of the container. Button height will dynamically resize based on button text. Button text can wrap two lines. Use the button’s titleLabelpreferredMaxLayoutWidth
and the button’sisPreservingPreferredMaxLayoutWidth
to set the button’s width. Note Developer should changepreferredMaxLayoutWidth
depenedent on the accessibility text size.actionAccessoryType
: AFUITableViewCellActionAccessoryType
type used to display the button or the different states of theprogressView
. Changing theactionAccessoryType
drives which view is active.
Usage
See morelet singleActionView = FUISingleActionAccessoryView() singleActionView.actionAccessoryType = .button singleActionView.button.setTitle("Follow", for: .normal) singleActionView.button.setTitle("Unfollow", for: .selected) singleActionView.button.titleLabel?.preferredMaxLayoutWidth = 75 singleActionView.button.isPersistentSelection = true singleActionView.button.isPreservingPreferredMaxLayoutWidth = true singleActionView.button.didSelectHandler = { btn in print("Button Selected") }
Declaration
Swift
public class FUISingleActionAccessoryView : UIView
-
Button component used in
FUISingleActionAccessoryView
.This view appears as the accessoryView to the
FUIObjectTableViewCell
.Usage
let singleActionButton = FUISingleActionButton() singleActionButton.setTitle("Follow", for: .normal) singleActionButton.setTitle("Unfollow", for: .selected) singleActionButton.titleLabel?.preferredMaxLayoutWidth = 75 singleActionButton.isPersistentSelection = true singleActionButton.isPreservingPreferredMaxLayoutWidth = true singleActionButton.didSelectHandler = { btn in print("Button Selected") }
Declaration
Swift
open class FUISingleActionButton : FUIButton
-
The progress indicator of the
FUIObjectTableViewCell
within theFUISingleActionAccessoryView
.The indicator has an optional selection handler triggered by
UIControlEvent.touchUpInside
Usage
See morelet progressView = FUISingleActionProgressIndicator() progressView.didSelectHandler = { progressView in print("Indicator Selected") }
Declaration
Swift
public class FUISingleActionProgressIndicator : FUIProgressIndicatorControl
-
Enum determining the Action Accessory Type of the
FUISingleActionAccessoryView
in theFUIObjectTableViewCell
.Changing the
FUITableViewCellActionAccessoryType
changes theFUISingleActionAccessoryView
to show the correct view.There are six cases:
none
: TableViewCell does not display an actionAccessoryViewbutton
: TableViewCell displays theFUISingleActionButton
in the actionAccessoryViewprocessing
: TableViewCell displays theFUISingleActionProgressIndicator
in a processing stateloadingPausable
: TableViewCell displays theFUISingleActionProgressIndicator
in a loading state that can be pausedloadingStoppable
: TableViewCell displays theFUISingleActionProgressIndicator
in a loading state that can be stoppedpausedResumable
: TableViewCell displays theFUISingleActionProgressIndicator
in a paused state that can be resumed
Declaration
Swift
public enum FUITableViewCellActionAccessoryType
-
FUIObjectCell
is an Interface-Builder-designable UI component that extendsUIView
for showing information of an object. It contains a set of default content views which are common to Fiori Design Language Object Cell types, with the associated constraint implementations and handling for size classes.Views Available in FUIObjectCell:
iconsStackView
: an UIStackView view expected to contain a vertical stack of icons/images in its view content. The view is added to the cell unlesscell.preserveIconStackSpacing
is set tofalse
. This is the first view in the cell and can be left todetailImageView
. Usecell.iconImages
to add image(s) to the stack view. Each icon/image size is set to be16px
by16px
.detailImageView
: a FUIImageView view added to the cell unlesscell.preserveDetailImageSpacing
is set tofalse
. The view is right toiconsStackView
and left toheadlineLabel
. The image is scaled to fit with fixed aspect. The image size is set to45px
by45px
. Usecell.detailImage
to set imageheadlineLabel
: an UILabel view is always displayed and intended to display a heandline text in the cell. Use `cell.headlineText" to set label textsubheadlineLabel
: an UILabel view is added 3px belowheadlineLabel
to the cell. Use `cell.subheadlineText" to set label textfootnoteLabel
: an UILabel view is added 3px belowsubheadLabel
to the cell. Use `cell.footnoteText" to set label textdescriptionLabel
: an UILabel view tended to display a long text in the cell. It gets displayed only in regular view. The view is right toheadlineLabel
and left tostatusImageView
(orstatusLabel
). Use `cell.descriptionText" to set label textstatusImageView
/statusLabel
: an UIImageView/UILabel added to the cell for status.statusImageView
gets added with size16px
by16px
. The view is left to accessory view and right todescriptionLabel
. Usecell.statusText
to set label text orcell.statusImage
to set image.substatusImageView
/substatusLabel
: an UIImageView/UILabel added to the cell under status.substatusImageView
gets added with size16px
by16px
. Usecell.substatusText
to set label text orcell.substatusImage
to set image. An error will be logged whenaccessoryType
is not.none
nor.disclosureIndicator
, then setting a substatus label text or substatus image as this setting breaks Fiori Design Language pattern.accessoryView
: an UIView added to the view whencell.accessoryType
is not.none
. The view is an UIButton customized in FUIObjectCell and is aligned to the base-line ofheadlineLabel
when the type is.disclosureIndicator
. For any other types, it’s vertically center-aligned and created by Apple native SDK.
Example Initialization and Configuration:
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: ObjectTableViewCell.reuseIdentifier, for: indexPath as IndexPath) as! ObjectTableViewCell cell.detailImage = UIImage(named: "ProfilePic") cell.headlineText = "Edgar Scissorhands" cell.subheadlineText = "Lorem ipsum datil es iosin Lotios nsiqok" cell.footnoteText = "Here is some footer text about Edward" cell.statusImageView.image = UIImage(named: "ErrorIcon") cell.substatusText = "Active" cell.descriptionText = "This text is only visible when the cell is in regular horizontal size class." cell.iconImages = [#imageLiteral(resourceName: "clock"), #imageLiteral(resourceName: "check"), #imageLiteral(resourceName: "attention")] cell.accessoryType = .disclosureIndicator return cell }
Theming
Supported style classes
See morefdlFUIObjectCell fdlFUIObjectCell_headlineLabel fdlFUIObjectCell_subheadLabel fdlFUIObjectCell_footnoteLabel fdlFUIObjectCell_statusLabel fdlFUIObjectCell_substatusLabel fdlFUIObjectCell_descriptionLabel
Declaration
Swift
@available(*, deprecated, message: "Use `FUIObjectView`, instead.") open class FUIObjectCell : NibDesignable
-
FUIObjectHeader
extendsUIView
for showing information of an object header. It contains a set of default content views which are common to Fiori Design Language Object Cell types, with the associated constraint implementations and handling for size classes.Regular (Landscape) Horizontal Size Class: Anatomy & Variations
Compact (Portrait) Horizontal Size Class: Anatomy & Variations
Views Available in FUIObjectHeader:
detailImageView
: a UIImageView view added to the view. The image size is set to45px
by45px
in compact mode and70px
by70px
in regular mode. UsedetailImage
to set imageheadlineLabel
: an UILabel view is always displayed and intended to display a heandline text in the view. UseheadlineText
to set label textsubheadlineLabel
: an UILabel view is added 4px belowheadlineLabel
to the view. UsesubheadlineText
to set label texttags
: a list of tag labels is a part ofAdditionalInfoView
added16px
belowsubheadlineLabel
. The view displays no more than 3 tags on screen.bodyLabel
: an UILabel view is a part ofAdditionalInfoView
added 6px belowtags
to the view. UsebodyText
to set label textfootnoteLabel
: an UILabel view is a part ofAdditionalInfoView
added 3px belowbodyLabel
to the view. UsefootnoteText
to set label textdescriptionLabel
: an UILabel view tended to display a long text in the view. It always gets displayed in compact view. IfdetailContentView
andAdditionalInfoView
are set, regular view does not showdescriptionLabel
. In compact view, ifAdditionalInfoView
is not set, the label is displayed belowheadlineLabel
andsubheadlineLabel
on page1 of the scroll view; otherwise, ifDetailContentView
is not set, the label is placed to page2 of the scroll view. When bothAdditionalInfoView
andDetailContentView
are set, the label would be placed to page3 of the scroll view. UsedescriptionText
to set label textstatusImageView
/statusLabel
: an UIImageView/UILabel added to the view for status.statusImageView
gets added with size16px
by16px
. The view is right toheadlineLabel
in compact mode and right toDetailContentView
in regular mode. UsecstatusText
to set label text orstatusImage
to set image.substatusImageView
/substatusLabel
: an UIImageView/UILabel added to the view under status.substatusImageView
gets added with size16px
by16px
. UsesubstatusText
to set label text orsubstatusImage
to set image.detailContentView
: an UIView added to the view in page2 in compact view and right toheadlineLabel
in regular mode.
Example Initialization and Configuration:
//Programmatically add an Object header to tableview let objectHeader = FUIObjectHeader() self.tableView.tableHeaderView = objectHeader objectHeader.detailImageView.image = #imageLiteral(resourceName: "ProfilePic") objectHeader.headlineLabel.text = "Inspect Electric Pump Motor Long Job Title Example Will Wrap Max# of Lines in the HeadlineLabel" objectHeader.subheadlineLabel.text = "Job 819701." objectHeader.tags = [FUITag(title: "Started"), FUITag(title: "PM01"), FUITag(title: "103-Repair")] objectHeader.bodyLabel.text = "1000-Hamburg, MECHANIK." objectHeader.footnoteLabel.text = "Due on 12/31/16." objectHeader.descriptionLabel.text = "Temperature sensor predicts overheating failure in 4 days Urgent and needs attentions. Temperature sensor predicts overheating failure in 4 days Urgent and needs attentions." objectHeader.statusLabel.text = "High" objectHeader.substatusImageView.image = <#my image#> // create a custom `UIView`-subclassing instance, to set to `detailContentView` property. let myAnalytics = AnalyticHeaderDetailView() myAnalytics.chartImageView.image = #imageLiteral(resourceName: "hogwarts") objectHeader.detailContentView = myAnalytics
Note:
FUIObjectHeader
added toUITableView
as tableHeaderView is compatible withUIRefreshControl
added to the same table view. Just note that if anUIRefreshControl
object is set after adding anFUIObjectHeader
object as tableHeaderView, theUIRefreshControl
object must be moved to the front in the table view; otherwise, theUIRefreshControl
object wouldn’t be visible.When
FUIObjectHeader
is added to a table view in a storyboard andUIRefreshControl
is added later in a table view controller class’viewDidLoad
function, the Developer should bring the refreshControl to the front:self.refreshControl = UIRefreshControl() self.refreshControl?.addTarget(self, action: #selector(refreshTriggered), for: .valueChanged) self.refreshControl?.tintColor = UIColor.white //bring refresh control to the front to make it visible self.tableView.bringSubview(toFront: self.refreshControl!)
## Theming
Supported
ObjectHeader
class paths:fdlFUIObjectHeader {}
Supported
ObjectHeader
attributes:tint-color (Color) background-color (Color) background-color-scheme (FUIBackgroundColorScheme)
Supported
Text
class paths:fdlFUIObjectHeader_headlineLabel {} fdlFUIObjectHeader_subheadlineLabel {} fdlFUIObjectHeader_bodyLabel {} fdlFUIObjectHeader_footnoteLabel {} fdlFUIObjectHeader_descriptionLabel {} fdlFUIObjectHeader_statusLabel {} fdlFUIObjectHeader_substatusLabel {} fdlFUIObjectHeader_statusView_statusLabel {} // deprecated fdlFUIObjectHeader_statusView_substatusLabel {} // deprecated
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:fdlFUIObjectHeader_detailImageView {} fdlFUIObjectHeader_statusImageView {} fdlFUIObjectHeader_substatusImageView {}
Supported
ImageView
attributes:
See moreimage-name (Image) tint-color (Color)
Declaration
Swift
@IBDesignable open class FUIObjectHeader : FUIBaseHeaderView<FUIObjectHeaderView>
-
Theming
Supported
ObjectHeaderView
class paths:View {} fdlFUIObjectHeaderView {}
Supported
ObjectHeaderView
attributes:tint-color (Color) background-color (Color)
Supported
Text
class paths:fdlObjectHeaderView_headlineLabel {} fdlObjectHeaderView_subheadlineLabel {} fdlObjectHeaderView_bodyLabel {} fdlObjectHeaderView_footnoteLabel {} fdlObjectHeaderView_descriptionLabel {} fdlObjectHeaderView_statusLabel {} fdlObjectHeaderView_substatusLabel {}
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:fdlObjectHeaderView_detailImageView {} fdlObjectHeaderView_statusImageView {} fdlObjectHeaderView_substatusImageView {}
Supported
ImageView
attributes:
See moreimage-name (Image) tint-color (Color)
Declaration
Swift
open class FUIObjectHeaderView : FUIDrawingView, FUIObjectHeaderViewComponent, FUIObjectComponent, FUITagsComponent
-
Chart & KPI content View for presentation in
FUIObjectHeader
. Set an instance of this view to theFUIObjectHeader.detailContentView
property, for correct layout.Usage
See morelet view = FUIObjectHeaderChartView() view.title.text = "Voltage Readings" view.subtitle.text = "Volatility" view.trend.text = "0.24%"" view.trendImage = FUIIconLibrary.analytics.trendUp.withRenderingMode(.alwaysTemplate) view.trendSemanticColor = UIColor.preferredFioriColor(forStyle: .positive) view.chartView.dataSource = self view.isEnabled = true objectHeader.detailContentView = view
Declaration
Swift
open class FUIObjectHeaderChartView : FUITintableDrawingView<FUIControlState>, FUITitleComponent, FUISubtitleComponent, FUITrendComponent, FUIKPIComponent, FUIKPIAttributesConsumer, FUIKPIAttributesProvider