//
//  ElectronicAccountTopView.m
//  Open
//
//  Created by 雷俊博 on 2020/7/29.
//  Copyright © 2020 黄江涛 . All rights reserved.
//

#import "ElectronicAccountTopView.h"

@implementation ElectronicAccountTopView

- (void)awakeFromNib
{
    [super awakeFromNib];
    UIBezierPath *cornerRadiusPath = [UIBezierPath bezierPathWithRoundedRect:self.cardView.bounds byRoundingCorners:UIRectCornerAllCorners cornerRadii:CGSizeMake(16, 16)];

    CAShapeLayer *cornerRadiusLayer = [ [CAShapeLayer alloc ] init];

    cornerRadiusLayer.frame = self.cardView.bounds;

    cornerRadiusLayer.path = cornerRadiusPath.CGPath;
    self.cardView.layer.mask = cornerRadiusLayer;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
