VOTitlePersonalizationOption
@interface VOTitlePersonalizationOption : VOPersonalizationOption
VOTitlePersonalizationOption represents a VOVoucher customization which will allow users to title their VOVoucher. Instantiate a VOTitlePersonalizationOption and include it in the voucher creation view controller setup if you would like the user to be able to add a title to their VOVoucher.
Note
The title uses the Display font Style. Title and placeholder text colors are non-customizable. *-
(Unselectable) text to be displayed when there is no title text.
Note
Default text color is gray. *Declaration
Objective-C
@property (readonly, nonatomic) NSString *placeholderText;Swift
var placeholderText: String! { get } -
Initial title text to be displayed in
CreateAddTitleViewController.Note
Default text color is black. *Declaration
Objective-C
@property (readonly, nonatomic) NSString *titleText;Swift
var titleText: String! { get } -
The maximum number of characters that titleText can contain.
Declaration
Objective-C
@property (readonly, nonatomic) NSInteger maxTitleLength;Swift
var maxTitleLength: Int { get } -
Creates a VOTitlePersonalizationOption object with the values from the builder. Internally calls initWithBuilder
Declaration
Objective-C
+ (instancetype)titlePersonalizationOptionWithBuilderBlock: (void (^)(VOTitlePersonalizationOptionBuilder *))builderBlock;Swift
convenience init!(builderBlock: ((VOTitlePersonalizationOptionBuilder?) -> Void)!)Parameters
builderBlock- the block containing the builder to construct the personalization option. Set the desired properties on the builder within the block.
Return Value
instancetype - VOTitlePersonalizationOption object containing the properties specified in the builder. *
View on GitHub
VOTitlePersonalizationOption Class Reference