NativeTemplateAppearance

@objc(YMANativeTemplateAppearance)
@objcMembers
public class NativeTemplateAppearance : NSObject, NSCopying, NSMutableCopying

Class with the default (fixed) settings for the standard ad layout. If you want to edit the default settings of the standard appearance, use the MutableNativeTemplateAppearance class.

  • Width of the border.

    Declaration

    Swift

    public var borderWidth: CGFloat { get }
  • Color of the border.

    Declaration

    Swift

    public var borderColor: UIColor { get }
  • Background color.

    Declaration

    Swift

    public var backgroundColor: UIColor { get }
  • Horizontal (left and right) margins between the content and the edges of the ad.

    Remark

    Measured in logical pixels.

    Declaration

    Swift

    public var contentPadding: YMAHorizontalOffset { get }
  • The horizontal margins around the image, relative to the ad content.

    Remark

    The left margin is relative to the left edge of the content. The right margin is the gap between the right edge of the image and the left edge of the text.

    Warning

    It doesn’t apply to large images that are placed under the main ad text and cover the entire width of the ad.

    Declaration

    Swift

    public var imageMargins: YMAHorizontalOffset { get }
  • Appearance settings for the text with age restrictions.

    Declaration

    Swift

    public var ageAppearance: LabelAppearance? { get }
  • Appearance settings for the main ad text.

    Declaration

    Swift

    public var bodyAppearance: LabelAppearance? { get }
  • Appearance settings for a call-to-action button (for example, the Install button).

    Declaration

    Swift

    public var callToActionAppearance: ButtonAppearance? { get }
  • Appearance settings for the domain text.

    Declaration

    Swift

    public var domainAppearance: LabelAppearance? { get }
  • Appearance settings for the favicon.

    Declaration

    Swift

    public var faviconAppearance: ImageAppearance? { get }
  • Appearance settings for the feedback.

    Declaration

    Swift

    public var feedbackAppearance: ImageAppearance? { get }
  • Appearance settings for the image.

    Warning

    It doesn’t apply to large images that are placed under the main ad text and cover the entire width of the ad.

    Declaration

    Swift

    public var imageAppearance: ImageAppearance? { get }
  • Appearance settings for the rating.

    Declaration

    Swift

    public var ratingAppearance: RatingAppearance? { get }
  • Appearance settings for the ad network text.

    Declaration

    Swift

    public var sponsoredAppearance: LabelAppearance? { get }
  • Appearance settings for the ad title text.

    Declaration

    Swift

    public var titleAppearance: LabelAppearance? { get }
  • Appearance settings for the number of app reviews.

    Declaration

    Swift

    public var reviewCountAppearance: LabelAppearance? { get }
  • Appearance settings for the warning text.

    Declaration

    Swift

    public var warningAppearance: LabelAppearance? { get }
  • Corresponding mutable representation of current native template appearance.

    Declaration

    Swift

    public var mutableAppearance: MutableNativeTemplateAppearance { get }
  • Creates an object with default settings for the standard design.

    Declaration

    Swift

    @objc(defaultAppearance)
    public static let `default`: NativeTemplateAppearance

    Return Value

    Returns an object with the default settings for the standard design.

  • Undocumented

    Declaration

    Swift

    override public convenience init()

NSCopying

  • Undocumented

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any

NSMutableCopying

  • Undocumented

    Declaration

    Swift

    public func mutableCopy(with zone: NSZone? = nil) -> Any