TitlePersonalizationOption
@interface TitlePersonalizationOption : PersonalizationOption
TitlePersonalizationOption represents a Voucher customization which will allow users to title their Voucher. Instantiate a TitlePersonalizationOption and include it in the VoucherCreationViewController setup if you would like the user to be able to add a title to their Voucher.
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 TitlePersonalizationOption object with the values from the builder. Internally calls initWithBuilder
Declaration
Objective-C
+ (instancetype)titlePersonalizationOptionWithBuilderBlock: (void (^)(TitlePersonalizationOptionBuilder *))builderBlock;Swift
convenience init!(builderBlock: ((TitlePersonalizationOptionBuilder?) -> 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 - TitlePersonalizationOption object containing the properties specified in the builder. *
View on GitHub
TitlePersonalizationOption Class Reference