BTNTextCard Class Reference
Inherits from | BTNCard : NSObject |
---|---|
Declared in | BTNTextCard.h |
title
The title of the card to be displayed in the card’s view.
@property (nullable, nonatomic, readwrite, copy) NSString *title
Discussion
The title of the card to be displayed in the card’s view.
Declared In
BTNTextCard.h
body
The body of the card to be displayed in the card’s view.
@property (nullable, nonatomic, readwrite, copy) NSString *body
Discussion
The body of the card to be displayed in the card’s view.
Declared In
BTNTextCard.h
backgroundColor
The background color of the card view.
@property (nullable, nonatomic, readwrite, strong) UIColor *backgroundColor
Discussion
The background color of the card view.
Note: Defaults to #0cac56.
Declared In
BTNTextCard.h
– initWithCallToAction:title:body:
Creates a new text card.
- (instancetype)initWithCallToAction:(BTNCardCallToAction *)cardCTA title:(nullable NSString *)title body:(nullable NSString *)body
Parameters
cardCTA |
The call to action object to be displayed when the card is “active”. |
---|---|
title |
The title of the card. |
body |
The body text of the card. |
Return Value
Returns an instance of a card with the title, bodyText, and cardCTA.
Discussion
Creates a new text card.
Declared In
BTNTextCard.h