FUIObjectView

@IBDesignable
open class FUIObjectView : FUIDrawingView, 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"
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

fdlFontStyle_headline {}           // deprecated
fdlFontStyle_subheadline {}        // deprecated
fdlFontStyle_body {}               // deprecated
  • Label property configuration for headline content.

    Remark

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

    Declaration

    Swift

    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 a NSAttributedString.

    Declaration

    Swift

    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 a NSAttributedString.

    Declaration

    Swift

    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 a NSAttributedString.

    Declaration

    Swift

    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 a NSAttributedString.

    Declaration

    Swift

    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 a NSAttributedString.

    Declaration

    Swift

    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 a NSTextAttachment, rendered in a NSAttributedString.

    Declaration

    Swift

    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 a NSTextAttachment, rendered in a NSAttributedString.

    Declaration

    Swift

    lazy public private(set) var substatusImageView: FUIImageView { get set }
  • UIImageView displaying detailImage content. Will be rendered in view hierarchy.

    Declaration

    Swift

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

    Declaration

    Swift

    public var iconImages: [FUIGlyphImage] { get set }
  • Distribution of left and right content columns, when in .regular horizontal content mode. Defaults to 0.5.

    Declaration

    Swift

    @IBInspectable
    public var splitPercent: CGFloat { get set }
  • Specifies whether the dimensions of the iconImages should be preserved, even if the property is empty. Defaults to false.

    Declaration

    Swift

    @IBInspectable
    public var preserveIconStackSpacing: Bool { get set }
  • Specifies whether the dimensions of the detailImageView should be preserved, even if the image property is empty. Defaults to false.

    Declaration

    Swift

    @IBInspectable
    public var preserveDetailImageSpacing: Bool { get set }
  • Width of area for stacked icons. Should only be modified, if rendering multi-digit indicators in the iconImages property. Defaults to 16.

    Declaration

    Swift

    public var iconsColumnWidth: CGFloat { get set }
  • Dimensions of detailImageView. Should be within range 32x32 to 60x60.

    Declaration

    Swift

    public var detailImageViewSize: CGSize { get set }
  • Specifies whether the height of the description content will be limited to match the height of content in the headline, subheadline, and footnote labels. Defaults to true.

    Declaration

    Swift

    public var isLimitingHeightToMainContent: Bool { get set }
  • Specifies whether the splitPercent is applied. If not, the .compact variant of the layout will be used, even when in .regular mode. Defaults to true.

    Declaration

    Swift

    @IBInspectable
    public var isApplyingSplitPercent: Bool { get set }
  • Specifies whether subview colors should be configured for presentation against light or dark background

    Declaration

    Swift

    open override var backgroundColorScheme: FUIBackgroundColorScheme { get set }
  • Undocumented

    Declaration

    Swift

    public var isMultiline: Bool { get }
  • Method invoked when frames are recalculated

    Declaration

    Swift

    open override func calculateLayout(_ targetSize: CGSize)

    Parameters

    targetSize

    CGSize of the target to be recalculated

  • Declaration

    Swift

    @IBInspectable
    public var detailImage: UIImage? { get set }
  • Declaration

    Swift

    @IBInspectable
    public var headlineText: String? { get set }
  • Declaration

    Swift

    @IBInspectable
    public var subheadlineText: String? { get set }
  • Declaration

    Swift

    @IBInspectable
    public var footnoteText: String? { get set }
  • Declaration

    Swift

    @IBInspectable
    public var descriptionText: String? { get set }
  • Declaration

    Swift

    @IBInspectable
    public var statusText: String? { get set }
  • Declaration

    Swift

    @IBInspectable
    public var statusImage: UIImage? { get set }
  • Declaration

    Swift

    @IBInspectable
    public var substatusText: String? { get set }
  • Declaration

    Swift

    @IBInspectable
    public var substatusImage: UIImage? { get set }