FUIObjectView
@IBDesignable
open class FUIObjectView : FUIObjectViewBase, FUIObjectViewComponent, FUIIconsComponent, FUIHorizontalIconsComponent, FUITagsComponent, FUIFootnoteIconsComponent
extension FUIObjectView: FUIObjectComponent
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"]
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
fdlFontStyle_headline {} // deprecated
fdlFontStyle_subheadline {} // deprecated
fdlFontStyle_body {} // deprecated
-
List of tag instances.
Declaration
Swift
public var tags: [FUITag] { get set }
-
Declaration
Swift
public var numberOfTagLines: Int { get set }
-
Label property configuration for
headline
content.Remark
aUILabel
will not be rendered in the view hierarchy at runtime; text and configurations will produce anNSAttributedString
.Declaration
Swift
lazy public private(set) var headlineLabel: FUILabel { get set }
-
Label property configuration for
subheadline
content.Remark
aUILabel
will not be rendered in the view hierarchy at runtime; text and configurations will produce anNSAttributedString
.Declaration
Swift
lazy public private(set) var subheadlineLabel: FUILabel { get set }
-
Label property configuration for
footnote
content.Remark
aUILabel
will not be rendered in the view hierarchy at runtime; text and configurations will produce anNSAttributedString
.Declaration
Swift
lazy public private(set) var footnoteLabel: FUILabel { get set }
-
Label property configuration for
description
content.Remark
aUILabel
will not be rendered in the view hierarchy at runtime; text and configurations will produce anNSAttributedString
.Declaration
Swift
lazy public private(set) var descriptionLabel: FUILabel { get set }
-
Label property configuration for
status
content.Remark
aUILabel
will not be rendered in the view hierarchy at runtime; text and configurations will produce anNSAttributedString
.Declaration
Swift
lazy public private(set) var statusLabel: FUILabel { get set }
-
Label property configuration for
substatus
content.Remark
aUILabel
will not be rendered in the view hierarchy at runtime; text and configurations will produce anNSAttributedString
.Declaration
Swift
lazy public private(set) var substatusLabel: FUILabel { get set }
-
ImageView property configuration for
statusImage
content.Remark
aUIImageView
will not be rendered in the view hierarchy at runtime; text and configurations will produce anNSTextAttachment
, rendered in anNSAttributedString
.Declaration
Swift
lazy public private(set) var statusImageView: FUIImageView { get set }
-
ImageView property configuration for
substatusImage
content.Remark
aUIImageView
will not be rendered in the view hierarchy at runtime; text and configurations will produce anNSTextAttachment
, rendered in anNSAttributedString
.Declaration
Swift
lazy public private(set) var substatusImageView: FUIImageView { get set }
-
FUIGlyphImages
(UIImage
orString
) which are rendered in an icon stack.Declaration
Swift
public var iconImages: [FUIGlyphImage] { get set }
-
FUIGlyphImages
(UIImage
orString
) maximum 4 icons which are rendered in an horizontal icon stack instatusView
.Declaration
Swift
public var horizontalIcons: [FUIGlyphImage] { get set }