@interface DOViewController ()
@property (strong, nonatomic) DOView *v;
@end

@implementation DOViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    // Setup the circle
    self.v = [DOView new];
    self.v.translatesAutoresizingMaskIntoConstraints = NO;
    self.v.backgroundColor = [UIColor redColor];
    [self.view addSubview:self.v];
    [self.v rz_centerVerticallyInContainer];
    [self.v rz_centerHorizontallyInContainer];
    [self.v rz_pinWidthTo:5.f];
    [self.v rz_pinHeightTo:5.0f];
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    self.v.rz_pinnedCenterYConstraint.constant = 50.0f;
    self.v.rz_pinnedWidthConstraint.constant = 50.0f;
    self.v.rz_pinnedHeightConstraint.constant = 50.0f;

    // Show it can animate as a circle
    [UIView animateWithDuration:5 delay:5 options:0 animations:^{
        [self.v layoutIfNeeded];
    } completion:nil];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
