UAInAppMessageTextStyle

@interface UAInAppMessageTextStyle : NSObject

Model object representing a custom style to be applied to an in-app message text component. Nil parameters are given default styling.

  • Padding adds constant values to the media component’s top, bottom, trailing or leading constraints within its parent view.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UAPadding *additionalPadding;
  • The spacing between letters.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSNumber *letterSpacing;

    Swift

    var letterSpacing: NSNumber? { get set }
  • The spacing above and below letters.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSNumber *lineSpacing;

    Swift

    var lineSpacing: NSNumber? { get set }
  • Text style factory method.

    Declaration

    Objective-C

    + (nonnull instancetype)
        styleWithAdditionalPadding:(nullable UAPadding *)additionalPadding
                     letterSpacing:(nullable NSNumber *)letterSpacing
                       lineSpacing:(nullable NSNumber *)lineSpacing;

    Swift

    convenience init(additionalPadding: Any!, letterSpacing: NSNumber?, lineSpacing: NSNumber?)

    Parameters

    additionalPadding

    The text view additonal padding, defaults to 0pts.

    letterSpacing

    The letter spacing, defaults to iOS default letter spacing.

    lineSpacing

    The line spacing, defaults to iOS default line spacing.

    Return Value

    Text Style with specified styling. Nil parameters will be given default styling

  • Text style factory method for styling from a plist.

    Declaration

    Objective-C

    + (nonnull instancetype)styleWithDictionary:(nullable NSDictionary *)textStyle;

    Swift

    convenience init(dictionary textStyle: [AnyHashable : Any]?)

    Parameters

    textStyle

    Text style dictionary.

    Return Value

    Text Style with specified styling. Nil parameters will be given default styling