Supporting Base Views
-
A
UITableViewCellsubclass, which supports limited configuration of separator line visibility and tintColor configuration.Theming
Supported style classes
See morefdlFUIBaseTableViewCell fdlFUIBaseTableViewCell_selectedBackgroundViewDeclaration
Swift
@MainActor open class FUIBaseTableViewCell : UITableViewCell, FUIViewBorderDrawingextension FUIBaseTableViewCell: FUIStateSelectable, FUIStateTintable -
Base
UITableViewCellsubclass, which adds a subview instance implementingDrawing, and manages its resizing & redrawing.The
FUIBaseDrawingTableViewCellis generic on itsinternalInnerView, which enables the API of theInnerViewto be exposed on the table view cell by using protocol extensions.For example, the
FUIChartTitleTableViewCell: FUIBaseDrawingTableViewCell<FUIChartTitleView>is generic onFUIChartTitleView, which implements theFUITitleComponent,FUISubtitleComponent, andFUIStatusComponentprotocols. Extensions toFUIBaseDrawingTableViewCellare implemented for each of the “Component” protocols:FUITitleComponent,FUISubtitleComponent, andFUIStatusComponent, whereInnerViewimplements the protocol, such that the property is routed to theInnerViewimplementation.Example Composition:
Declare
FUIChartTitleView, implementing the component interfacesopen class FUIChartTitleView: FUIDrawingView, FUITitleComponent, FUISubtitleComponent, FUIStatusComponent { // MARK: - implement interfaces for `FUITitleComponent`, `FUISubtitleComponent`, `FUIStatusComponent` public private(set) var title: FUIText = FUIText() public private(set) var subtitle: FUIText = FUIText() public private(set) var status: FUIText = FUIText()Declare
FUIChartTitleTableViewCell, which is generic onFUIChartTitleViewopen class FUIChartTitleTableViewCell: FUIBaseDrawingTableViewCell<FUIChartTitleView> { override func setup() { // MARK: - internal `_innerView` property is set to instance of `InnerView` class self._innerView = FUIChartTitleView() super.setup() } }Implement constrained extension to
FUIBaseDrawingTableViewCellforFUITitleComponent
See moreextension FUIBaseDrawingTableViewCell where InnerView: FUITitleComponent { public var title: FUIText { return _innerView.title } public var titleAttributedText: NSAttributedString! { get { return _innerView.titleAttributedText } set { _innerView.titleAttributedText = newValue } } public var titleStyleClassPath: [FioriStyle] { get { return _innerView.titleStyleClassPath } set { _innerView.titleStyleClassPath = newValue } } }Declaration
Swift
@MainActor open class FUIBaseDrawingTableViewCell<InnerView> : FUIBaseTableViewCell, InnerViewContainer, FUIStyleByStringAttributes where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes -
A base class of
UICollectionViewCellwhich exposes properties for displaying an accessory view, and for displaying cell borders.Theming
Supported style classes
See morefdlFUIBaseCollectionViewCell fdlFUIBaseCollectionViewCell_selectedBackgroundViewDeclaration
Swift
@MainActor open class FUIBaseCollectionViewCell : UICollectionViewCell -
Undocumented
See moreDeclaration
Swift
@MainActor open class FUIBaseDrawingCollectionViewCell<InnerView> : UICollectionViewCell, FUIStyleByStringAttributes, InnerViewContainer, FUIViewBorderDrawing where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes -
Base Collection View Cell for
FUICollectionItemCellandFUIImageCollectionViewCell. Typically not used directly by developer.Usage
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: FUIBaseItemCollectionViewCell.reuseIdentifier, for: indexPath) as! FUIBaseItemCollectionViewCell cell.itemSize = .small cell.detailImageView.image = UIImage(named: "profile")Theming
nuiClass:fdlFUIBaseItemCollectionViewCell {}Supported
TEXTclass paths:fdlFUIBaseItemCollectionViewCell_title {} fdlFUIBaseItemCollectionViewCell_subtitle {} fdlFUIBaseItemCollectionViewCell_status {} fdlFUIBaseItemCollectionViewCell_placeholder {}Supported
TEXTproperties:font-color: Color; font-style: UIFontTextStyle; text-line-clamp: Integer; text-align: NSTextAlignment;Supported
IMAGEclass paths:fdlFUIBaseItemCollectionViewCell_detailImageView {}Supported
IMAGEproperties:
See moretint-color: Color;Declaration
Swift
@MainActor open class FUIBaseItemCollectionViewCell<InnerView> : FUIBaseDrawingCollectionViewCell<InnerView> where InnerView : FUIImageCollectionItemView -
Re-implementation of
FUICollectionViewTableViewCell, which does not implementNibDesignableprotocol.See moreImportant
Autosizes to fit content, usingcollectionViewLayout.collectionViewContentSize.heightproperty.Declaration
Swift
@MainActor open class FUIBaseCollectionViewTableViewCell : UITableViewCell -
Typically not used by developer
See moreDeclaration
Swift
@MainActor open class FUIBaseContainerView<InnerView> : FUIDrawingView, InnerViewContainer, InnerViewContainerEventHandling where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes -
Undocumented
See moreDeclaration
Swift
@MainActor open class FUIBaseDrawingView : Drawing, FUIAttributesConsumer, FUIAttributedStringDrawing, PrepareForReuse, FUISkeletonable -
Undocumented
See moreDeclaration
Swift
@MainActor open class FUIBaseDrawingViewController<InnerView> : UIViewController, InnerViewContainer where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes -
Typically not used by developer
See moreDeclaration
Swift
@MainActor open class FUIBaseHeaderView<InnerView> : FUIBaseContainerView<InnerView> where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributesextension FUIBaseHeaderView: FUIBannerMessageView.FUIBannerHeaderContainerDelegate -
Base
See moreUIViewsubclass, implementing thefixedLayoutMarginsfeature.Declaration
Swift
@MainActor open class FUIBaseFixedMarginsView : UIView -
Base view for Chart Cards. Typically not used directly by developer.
Skeleton
let view = FUICardBaseView() view.showSkeleton() view.hideSkeleton()Theming
Supported
TEXTclass paths:fdlFUICardBaseView_title {} fdlFUICardBaseView_kpiUnitItem {} fdlFUICardBaseView_kpiMetricItem {} fdlFUICardBaseView_kpiFractionItem {} fdlFUICardBaseView_status {}Supported
TEXTproperties:font-color: Color; font-style: UIFontTextStyle; text-line-clamp: Integer; text-align: NSTextAlignment;Supported
IMAGEclass paths:fdlFUICardBaseView_kpiIconItem {}Supported
IMAGEproperties:
See moretint-color: Color;Declaration
Swift
@MainActor open class FUICardBaseView : FUIKPITitleBaseView, FUIStatusComponent -
Base view for Chart Cards. Typically not used directly by developer.
## Theming
Supported
TEXTclass paths:fdlFUIKPITitleBaseView_title {} fdlFUIKPITitleBaseView_kpiUnitItem {} fdlFUIKPITitleBaseView_kpiMetricItem {} fdlFUIKPITitleBaseView_kpiFractionItem {}Supported
TEXTproperties:font-color: Color; font-style: UIFontTextStyle; text-line-clamp: Integer; text-align: NSTextAlignment;Supported
IMAGEclass paths:fdlFUIKPITitleBaseView_kpiIconItem {}Supported
IMAGEproperties:
See moretint-color: Color;Declaration
Swift
@MainActor open class FUIKPITitleBaseView : FUITitleBaseView, FUIKPIComponent, FUIKPIAttributesProvider -
Base view for Chart Cards. Typically not used directly by developer.
Theming
Supported class paths:
fdlFUITitleBaseView_title {}Supported properties:
font-color: Color; font-style: UIFontTextStyle; text-line-clamp: Integer; text-align: NSTextAlignment;Declaration
Swift
@MainActor open class FUITitleBaseView : FUITintableDrawingView<FUIControlState>, FUITitleMultiLineComponent