TextCard Class Reference
TextCard
This is a concrete card class that can display a title and body text.
title
The title of the card to be displayed in the card’s view.
Declaration
titleColor
The color with which the title will be displayed.
Declaration
titleFont
The font with which the title will be displayed.
Declaration
body
The body of the card to be displayed in the card’s view.
Declaration
bodyColor
The color with which the body will be displayed.
Declaration
bodyFont
The font with which the body will be displayed.
Declaration
backgroundColor
The background color of the card view.
Declaration
- `init(callToAction:title:body:)
Creates a new text card.
Declaration
Parameters
<br> cardCTA<br> |
The call to action object to be displayed when the card is “active”. |
<br> title<br> |
The title of the card. |
<br> body<br> |
The body text of the card. |
Return Value
Returns an instance of a card with the title, bodyText, and cardCTA.