Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.add attribute 'progressLayerCornerRadius' to modify progressLayer'… #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ASProgressPopUpView/ASProgressPopUpView.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
@property (nonatomic) CGFloat popUpViewCornerRadius;


// radius of the progressLayer, default is 0.0
@property (nonatomic) CGFloat progressLayerCornerRadius;


// by default the popUpView size will be static and calculated to fit the largest display value
// to have the size continuously adjust set the property to YES
// if you set a dataSource the property will automatically be set to YES
Expand Down
8 changes: 8 additions & 0 deletions ASProgressPopUpView/ASProgressPopUpView.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ - (CGFloat)popUpViewCornerRadius
return self.popUpView.cornerRadius;
}

- (void)setProgressLayerCornerRadius:(CGFloat)progressLayerCornerRadius {
_progressLayer.cornerRadius = progressLayerCornerRadius;
}

- (CGFloat)progressLayerCornerRadius {
return _progressLayer.cornerRadius;
}

- (void)setDataSource:(id<ASProgressPopUpViewDataSource>)dataSource
{
_dataSource = dataSource;
Expand Down
1 change: 1 addition & 0 deletions Example/Example/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ - (void)viewDidLoad
self.progressView1.dataSource = self;

self.progressView2.popUpViewCornerRadius = 12.0;
self.progressView2.progressLayerCornerRadius = 6.0;
self.progressView2.font = [UIFont fontWithName:@"Futura-CondensedExtraBold" size:28];
self.progressView2.popUpViewAnimatedColors = @[[UIColor colorWithHue:0.4 saturation:0.4 brightness:0.3 alpha:1.0],
[UIColor colorWithHue:0.5 saturation:0.9 brightness:0.8 alpha:1.0]];
Expand Down