//
//  CQView.m
//  changlegeanimationOne
//
//  Created by 甯哥惣 on 16/3/11.
//  Copyright 漏 2016骞?shouhuobao. All rights reserved.
//

#import "CQView.h"
#import "CQLayer.h"


@interface CQView()

@property(strong,nonatomic) CQLayer *CQlayer;



@end

@implementation CQView

-(CQLayer *)CQlayer{
    if (_CQlayer == nil){
        _CQlayer = [CQLayer layer];
    }
    return _CQlayer;
}

-(void)initWithCQLayerFrame:(CGRect )rect{


    self.CQlayer.frame = CGRectMake(0, 0, rect.size.width, rect.size.height);

    self.CQlayer.progress = _progress;


        
    [self.layer addSublayer:self.CQlayer];
        


    
}


-(void)setProgress:(float)progress{
    _progress = progress;
    self.CQlayer.progress = progress;
}


@end
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com