Skip to content

Commit 2c91535

Browse files
committed
Improved UIAppearance support, fixes #12
1 parent aca3422 commit 2c91535

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

Example/MRProgressOverlayTableViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ @interface MRProgressOverlayTableViewController ()
1717

1818
@implementation MRProgressOverlayTableViewController
1919

20+
+ (void)load {
21+
[MRProgressOverlayView appearanceWhenContainedIn:UIImageView.class, nil].titleLabelText = @"Waiting ...";
22+
}
23+
2024
- (UIView *)rootView {
2125
return self.delegate.viewForProgressOverlay;
2226
}

src/Components/MRActivityIndicatorView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
The default value is 2.f.
2525
*/
26-
@property (nonatomic) CGFloat lineWidth;
26+
@property (nonatomic) CGFloat lineWidth UI_APPEARANCE_SELECTOR;
2727

2828
/**
2929
A Boolean value that controls whether the receiver is hidden when the animation is stopped.

src/Components/MRCircularProgressView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
3535
Default is 0.3s. Must be larger than zero.
3636
*/
37-
@property (nonatomic, assign) CFTimeInterval animationDuration;
37+
@property (nonatomic, assign) CFTimeInterval animationDuration UI_APPEARANCE_SELECTOR;
3838

3939
/**
4040
Change progress animated.

src/Components/MRCircularProgressView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ - (CAShapeLayer *)shapeLayer {
5454
}
5555

5656
- (void)commonInit {
57-
self.animationDuration = 0.3;
57+
_animationDuration = 0.3;
5858
self.progress = 0;
5959

6060
[self addTarget:self action:@selector(didTouchDown) forControlEvents:UIControlEventTouchDown];

src/Components/MRProgressOverlayView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ typedef NS_ENUM(NSUInteger, MRProgressOverlayViewMode){
118118
By default "Loading ...".
119119
This will automatically call setTitleLabelAttributedText: with current string attributes.
120120
*/
121-
@property (nonatomic, strong) NSString *titleLabelText;
121+
@property (nonatomic, strong) NSString *titleLabelText UI_APPEARANCE_SELECTOR;
122122

123123
/**
124124
Title label attributed text.

0 commit comments

Comments
 (0)