RRUserPhotoLayout

Objective-C

@interface RRUserPhotoLayout : RRAbstractTryOnLayout

Swift

class RRUserPhotoLayout : RRAbstractTryOnLayout

A layout that shows an avatar centered within the view and an array of garments fitted to that avatar. Further, a watermark can be displayed at the lower right of the view.

  • Initializes a new RRUserPhotoLayout;

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    An instance of RRUserPhotoLayout on success, nil otherwise.

  • Gets/Sets the background color of the view. You will only see the background color if the RRAvatarRenderable’s background is set to hidden (RRAvatarRenderable.backgroundHidden).

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull backgroundColor;

    Swift

    var backgroundColor: UIColor { get set }