DiscoverScreenBuilder
@interface DiscoverScreenBuilder : NSObject
DiscoverScreenBuilder is used only to help construct the VOVoucherDiscoverViewController and should not be initialized directly.
Instances of these properties should be instantiated and set in the VOEngine vouchrEngineWithBuilder: method.
-
The number of columns to display in the
VOVoucherDiscoverViewController.Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSUInteger numberOfColumns;Swift
var numberOfColumns: UInt { get set } -
The aspect ratio for the cell dimensions (width / height) in the
VOVoucherDiscoverViewController.Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat cellAspectRatio;Swift
var cellAspectRatio: CGFloat { get set } -
The spacing to use to the left, right, top, bottom and in betweeen cells in the
VOVoucherDiscoverViewController.Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat cellPadding;Swift
var cellPadding: CGFloat { get set } -
Determines whether the cells display an action button in the
VOVoucherDiscoverViewController.Note
Regardless of this value the cell can always be selected by tapping anywhere on the cell.Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL showCellActionButton;Swift
var showCellActionButton: Bool { get set } -
The text that appears on the cell’s action button in the
VOVoucherDiscoverViewController.Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSString *_Nonnull cellActionButtonText;Swift
var cellActionButtonText: String { get set } -
Corner radius applied to each cell in the
VOVoucherDiscoverViewController.Note
Does not apply to the header.Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat cellCornerRadius;Swift
var cellCornerRadius: CGFloat { get set } -
Shadow radius applied to each cell in the
VOVoucherDiscoverViewController.Note
Does not apply to the header.Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat cellShadowRadius;Swift
var cellShadowRadius: CGFloat { get set } -
Shadow offset applied to each cell in the
VOVoucherDiscoverViewController.Note
Does not apply to the header.Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGSize cellShadowOffset;Swift
var cellShadowOffset: CGSize { get set } -
Shadow opacity applied to each cell in the
VOVoucherDiscoverViewController.Note
Does not apply to the header.Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat cellShadowOpacity;Swift
var cellShadowOpacity: CGFloat { get set } -
The background color applied to top header view in
VOVoucherDiscoverViewController.Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIColor *_Nonnull headerBackgroundColor;Swift
var headerBackgroundColor: UIColor { get set } -
The image that appears in the top header view of
VOVoucherDiscoverViewController.Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIImage *_Nonnull headerImage;Swift
var headerImage: UIImage { get set } -
The text that appears in the top header view of
VOVoucherDiscoverViewController.Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSString *_Nonnull headerText;Swift
var headerText: String { get set } -
The text that appears in the button in the top header view of
VOVoucherDiscoverViewController.Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSString *_Nonnull headerButtonText;Swift
var headerButtonText: String { get set } -
The background color of
VOVoucherDiscoverViewController.Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIColor *_Nonnull backgroundColor;Swift
var backgroundColor: UIColor { get set } -
The theme to be applied to
VOVoucherDiscoverViewController.
View on GitHub
DiscoverScreenBuilder Class Reference