Skip to content

Commit

Permalink
Enable to set the effect's borderWidth and borderColor.
Browse files Browse the repository at this point in the history
  • Loading branch information
shu223 committed Jul 3, 2020
1 parent a146adf commit 3e6b2fe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions PulsingHalo/PulsingHaloLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ - (void)setFrame:(CGRect)frame {
self.effect.frame = frame;
}

- (void)setBorderWidth:(CGFloat)borderWidth {
[super setBorderWidth:borderWidth];
self.effect.borderWidth = borderWidth;
}

- (void)setBorderColor:(CGColorRef)borderColor {
[super setBorderColor:borderColor];
self.effect.borderColor = borderColor;
}

- (void)setBackgroundColor:(CGColorRef)backgroundColor {
[super setBackgroundColor:backgroundColor];
self.effect.backgroundColor = backgroundColor;
Expand Down

0 comments on commit 3e6b2fe

Please sign in to comment.