FUICardMediaView
public class FUICardMediaView : FUITintableDrawingView<FUIControlState>, FUIDetailImageViewComponent, FUITitleMultiLineComponent
Card media view. The media block can contain an optional title and an image that spans the complete width of the card.
Example Initialization and Configuration:
let mediaView = FUICardMediaView()
// set up media view
mediaView.detailImageView.image = UIImage(named: "imageName")
mediaView.title.text = "Title"
// set a customized height if needed
mediaView.detailImageViewHeight = 300
Theming
Supported Text
class paths:
fdlFUICardMediaView_title {}
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:
fdlFUICardMediaView_detailImageView {}
Supported ImageView
attributes:
image-name (Image)
tint-color (Color)
-
UIImageView
displayingdetailImage
content. Will be rendered in view hierarchy.Declaration
Swift
lazy public private(set) var detailImageView: FUIImageView { get set }
-
default height should be the imagre’s height but it can be changed by developers
Declaration
Swift
public var detailImageViewHeight: CGFloat? { get set }
-
Multiline text property configuration for
title
content.Declaration
Swift
public private(set) var title: FUIMultiLineText { get }
-
An array of the accessibility elements in the view
Declaration
Swift
open override var accessibilityElements: [Any]? { get set }