Supporting Base Views
-
A
UITableViewCell
subclass, which supports limited configuration of separator line visibility and tintColor configuration.Theming
Supported style classes
See morefdlFUIBaseTableViewCell fdlFUIBaseTableViewCell_selectedBackgroundView
Declaration
Swift
open class FUIBaseTableViewCell : UITableViewCell, FUIViewBorderDrawing
extension FUIBaseTableViewCell: FUIStateSelectable, FUIStateTintable
-
Base
UITableViewCell
subclass, which adds a subview instance implementingDrawing
, and manages its resizing & redrawing.The
FUIBaseDrawingTableViewCell
is generic on itsinternal
InnerView
, which enables the API of theInnerView
to be exposed on the table view cell by using protocol extensions.For example, the
FUIChartTitleTableViewCell: FUIBaseDrawingTableViewCell<FUIChartTitleView>
is generic onFUIChartTitleView
, which implements theFUITitleComponent
,FUISubtitleComponent
, andFUIStatusComponent
protocols. Extensions toFUIBaseDrawingTableViewCell
are implemented for each of the “Component” protocols:FUITitleComponent
,FUISubtitleComponent
, andFUIStatusComponent
, whereInnerView
implements the protocol, such that the property is routed to theInnerView
implementation.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 onFUIChartTitleView
open 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
FUIBaseDrawingTableViewCell
forFUITitleComponent
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
open class FUIBaseDrawingTableViewCell<InnerView> : FUIBaseTableViewCell, InnerViewContainer, FUIStyleByStringAttributes where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes
-
A base class of
UICollectionViewCell
which exposes properties for displaying an accessory view, and for displaying cell borders.Theming
Supported style classes
See morefdlFUIBaseCollectionViewCell fdlFUIBaseCollectionViewCell_selectedBackgroundView
Declaration
Swift
open class FUIBaseCollectionViewCell : UICollectionViewCell
-
Undocumented
See moreDeclaration
Swift
open class FUIBaseDrawingCollectionViewCell<InnerView> : UICollectionViewCell, FUIStyleByStringAttributes, InnerViewContainer, FUIViewBorderDrawing where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes
-
Base Collection View Cell for
FUICollectionItemCell
andFUIImageCollectionViewCell
. 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
TEXT
class paths:fdlFUIBaseItemCollectionViewCell_title {} fdlFUIBaseItemCollectionViewCell_subtitle {} fdlFUIBaseItemCollectionViewCell_status {} fdlFUIBaseItemCollectionViewCell_placeholder {}
Supported
TEXT
properties:font-color: Color; font-style: UIFontTextStyle; text-line-clamp: Integer; text-align: NSTextAlignment;
Supported
IMAGE
class paths:fdlFUIBaseItemCollectionViewCell_detailImageView {}
Supported
IMAGE
properties:
See moretint-color: Color;
Declaration
Swift
open class FUIBaseItemCollectionViewCell<InnerView> : FUIBaseDrawingCollectionViewCell<InnerView> where InnerView : FUIImageCollectionItemView
-
Re-implementation of
FUICollectionViewTableViewCell
, which does not implementNibDesignable
protocol.Important
Autosizes to fit content, usingcollectionViewLayout.collectionViewContentSize.height
property.Declaration
Swift
open class FUIBaseCollectionViewTableViewCell : UITableViewCell
-
Typically not used by developer
See moreDeclaration
Swift
open class FUIBaseContainerView<InnerView> : FUIDrawingView, InnerViewContainer, InnerViewContainerEventHandling where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes
-
Undocumented
See moreDeclaration
Swift
open class FUIBaseDrawingView : Drawing, FUIAttributesConsumer, FUIAttributedStringDrawing, PrepareForReuse
-
Undocumented
See moreDeclaration
Swift
open class FUIBaseDrawingViewController<InnerView> : UIViewController, InnerViewContainer where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes
-
Typically not used by developer
See moreDeclaration
Swift
open class FUIBaseHeaderView<InnerView> : FUIBaseContainerView<InnerView> where InnerView : FUIBaseFixedMarginsView, InnerView : FUIBackgroundSchemeSupporting, InnerView : FUICalculateLayout, InnerView : FUIStyleByStringAttributes
-
Base
See moreUIView
subclass, implementing thefixedLayoutMargins
feature.Declaration
Swift
open class FUIBaseFixedMarginsView : UIView
-
Base view for Chart Cards. Typically not used directly by developer.
Theming
Supported
TEXT
class paths:fdlFUICardBaseView_title {} fdlFUICardBaseView_kpiUnitItem {} fdlFUICardBaseView_kpiMetricItem {} fdlFUICardBaseView_kpiFractionItem {} fdlFUICardBaseView_status {}
Supported
TEXT
properties:font-color: Color; font-style: UIFontTextStyle; text-line-clamp: Integer; text-align: NSTextAlignment;
Supported
IMAGE
class paths:fdlFUICardBaseView_kpiIconItem {}
Supported
IMAGE
properties:
See moretint-color: Color;
Declaration
Swift
open class FUICardBaseView : FUIKPITitleBaseView, FUIStatusComponent
-
Base view for Chart Cards. Typically not used directly by developer.
## Theming
Supported
TEXT
class paths:fdlFUIKPITitleBaseView_title {} fdlFUIKPITitleBaseView_kpiUnitItem {} fdlFUIKPITitleBaseView_kpiMetricItem {} fdlFUIKPITitleBaseView_kpiFractionItem {}
Supported
TEXT
properties:font-color: Color; font-style: UIFontTextStyle; text-line-clamp: Integer; text-align: NSTextAlignment;
Supported
IMAGE
class paths:fdlFUIKPITitleBaseView_kpiIconItem {}
Supported
IMAGE
properties:
See moretint-color: Color;
Declaration
Swift
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
open class FUITitleBaseView : FUITintableDrawingView<FUIControlState>, FUITitleMultiLineComponent