Skip to content

Commit 4adf66d

Browse files
Merge branch 'shkutkov-master'
2 parents a227bdd + 9101f00 commit 4adf66d

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

WYPopoverController/WYPopoverController.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ typedef NS_OPTIONS(NSUInteger, WYPopoverArrowDirection) {
7373
@property (nonatomic, assign) CGFloat minOuterCornerRadius UI_APPEARANCE_SELECTOR;
7474

7575
@property (nonatomic, strong) UIColor *innerShadowColor UI_APPEARANCE_SELECTOR;
76+
@property (nonatomic, strong) UIColor *innerStrokeColor UI_APPEARANCE_SELECTOR;
7677
@property (nonatomic, assign) CGFloat innerShadowBlurRadius UI_APPEARANCE_SELECTOR;
7778
@property (nonatomic, assign) CGSize innerShadowOffset UI_APPEARANCE_SELECTOR;
7879
@property (nonatomic, assign) CGFloat innerCornerRadius UI_APPEARANCE_SELECTOR;

WYPopoverController/WYPopoverController.m

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ @interface WYPopoverInnerView : UIView
264264
@property (nonatomic, assign) CGFloat gradientTopPosition;
265265

266266
@property (nonatomic, strong) UIColor *innerShadowColor;
267+
@property (nonatomic, strong) UIColor *innerStrokeColor;
267268
@property (nonatomic, assign) CGSize innerShadowOffset;
268269
@property (nonatomic, assign) CGFloat innerShadowBlurRadius;
269270
@property (nonatomic, assign) CGFloat innerCornerRadius;
@@ -288,6 +289,7 @@ @implementation WYPopoverInnerView
288289
@synthesize gradientTopPosition;
289290

290291
@synthesize innerShadowColor;
292+
@synthesize innerStrokeColor;
291293
@synthesize innerShadowOffset;
292294
@synthesize innerShadowBlurRadius;
293295
@synthesize innerCornerRadius;
@@ -354,7 +356,7 @@ - (void)drawRect:(CGRect)rect
354356

355357
UIBezierPath* inRoundedRectPath = [UIBezierPath bezierPathWithRoundedRect:CGRectInset(innerRect, 0.5, 0.5) cornerRadius:cornerRadius];
356358

357-
[self.strokeColor setStroke];
359+
[self.innerStrokeColor setStroke];
358360
inRoundedRectPath.lineWidth = 1;
359361
[inRoundedRectPath stroke];
360362
}
@@ -369,6 +371,7 @@ - (void)dealloc
369371
{
370372
strokeColor = nil;
371373
innerShadowColor = nil;
374+
innerStrokeColor = nil;
372375
gradientTopColor = nil;
373376
gradientBottomColor = nil;
374377
}
@@ -517,6 +520,7 @@ @implementation WYPopoverBackgroundView
517520
@synthesize outerCornerRadius;
518521
@synthesize minOuterCornerRadius;
519522
@synthesize innerShadowColor;
523+
@synthesize innerStrokeColor;
520524
@synthesize innerShadowBlurRadius;
521525
@synthesize innerShadowOffset;
522526
@synthesize innerCornerRadius;
@@ -540,6 +544,7 @@ + (void)load
540544
{
541545
appearance.tintColor = nil;
542546
appearance.strokeColor = nil;
547+
appearance.innerStrokeColor = nil;
543548
appearance.fillTopColor = nil;
544549
appearance.fillBottomColor = nil;
545550
appearance.glossShadowColor = nil;
@@ -563,6 +568,7 @@ + (void)load
563568
{
564569
appearance.tintColor = nil;
565570
appearance.strokeColor = [UIColor clearColor];
571+
appearance.innerStrokeColor = [UIColor clearColor];
566572
appearance.fillTopColor = nil;
567573
appearance.fillBottomColor = nil;
568574
appearance.glossShadowColor = nil;
@@ -699,6 +705,7 @@ - (void)setViewController:(UIViewController *)viewController
699705
innerView.gradientBottomColor = self.fillBottomColor;
700706
innerView.strokeColor = self.strokeColor;
701707
innerView.innerShadowColor = innerShadowColor;
708+
innerView.innerStrokeColor = innerStrokeColor;
702709
innerView.innerShadowOffset = innerShadowOffset;
703710
innerView.innerCornerRadius = self.innerCornerRadius;
704711
innerView.innerShadowBlurRadius = innerShadowBlurRadius;
@@ -1183,6 +1190,7 @@ - (void)dealloc
11831190
glossShadowColor = nil;
11841191
outerShadowColor = nil;
11851192
innerShadowColor = nil;
1193+
innerStrokeColor = nil;
11861194
}
11871195

11881196
@end
@@ -1362,6 +1370,7 @@ - (void)presentPopoverFromRect:(CGRect)aRect inView:(UIView *)aView permittedArr
13621370
containerView.outerCornerRadius = appearance.outerCornerRadius;
13631371
containerView.minOuterCornerRadius = appearance.minOuterCornerRadius;
13641372
containerView.innerShadowColor = appearance.innerShadowColor;
1373+
containerView.innerStrokeColor = appearance.innerStrokeColor;
13651374
containerView.innerShadowBlurRadius = appearance.innerShadowBlurRadius;
13661375
containerView.innerShadowOffset = appearance.innerShadowOffset;
13671376
containerView.innerCornerRadius = appearance.innerCornerRadius;

0 commit comments

Comments
 (0)