BTNTextCard Class Reference

Inherits from BTNCard : NSObject
Declared in BTNTextCard.h

Overview

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.

@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

  titleColor

The color with which the title will be displayed.

@property (nullable, nonatomic, readwrite, strong) UIColor *titleColor

Discussion

The color with which the title will be displayed.

Note: Defaults to [UIColor whiteColor].

Declared In

BTNTextCard.h

  titleFont

The font with which the title will be displayed.

@property (nullable, nonatomic, readwrite, strong) UIFont *titleFont

Discussion

The font with which the title will be displayed.

Note: Defaults to medium weight system font, 17pt.

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

  bodyColor

The color with which the body will be displayed.

@property (nullable, nonatomic, readwrite, strong) UIColor *bodyColor

Discussion

The color with which the body will be displayed.

Note: Defaults to [UIColor whiteColor].

Declared In

BTNTextCard.h

  bodyFont

The font with which the body will be displayed.

@property (nullable, nonatomic, readwrite, strong) UIFont *bodyFont

Discussion

The font with which the body will be displayed.

Note: Defaults to regular weight system font, 14pt.

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