-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Appearance proxy support for VSAlertController :D
- Loading branch information
Varun Santhanam
committed
Oct 12, 2017
1 parent
99bd821
commit d5fcb70
Showing
7 changed files
with
116 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// VSAlertControllerAppearanceProxy.h | ||
// VSAlert | ||
// | ||
// Created by Varun Santhanam on 10/12/17. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
/** | ||
VSAlertControllerAppearanceProxy is a class used to support the UIAppearance protocol in VSAlertController, because VSAlertController does not inherit from an object that includes this support. This classes interface is described in a project header, and thus does not appear in the library documentation. | ||
*/ | ||
@interface VSAlertControllerAppearanceProxy : UIView<UIAppearance> | ||
|
||
/** | ||
The color of the alert's title | ||
*/ | ||
@property (NS_NONATOMIC_IOSONLY, strong, nonnull) UIColor *alertTitleTextColor UI_APPEARANCE_SELECTOR; | ||
|
||
/** | ||
The color of the alert's message | ||
*/ | ||
@property (NS_NONATOMIC_IOSONLY, strong, nonnull) UIColor *alertMessageTextColor UI_APPEARANCE_SELECTOR; | ||
|
||
/** | ||
The font of the alert's title | ||
*/ | ||
@property (NS_NONATOMIC_IOSONLY, strong, nonnull) UIFont *alertTitleTextFont UI_APPEARANCE_SELECTOR; | ||
|
||
/** | ||
The font of the aler's message | ||
*/ | ||
@property (NS_NONATOMIC_IOSONLY, strong, nonnull) UIFont *alertMessageTextFont UI_APPEARANCE_SELECTOR; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// VSAlertControllerAppearanceProxy.m | ||
// VSAlert | ||
// | ||
// Created by Varun Santhanam on 10/12/17. | ||
// | ||
|
||
#import "VSAlertControllerAppearanceProxy.h" | ||
|
||
@implementation VSAlertControllerAppearanceProxy | ||
|
||
@synthesize alertTitleTextColor = _alertTitleTextColor; | ||
@synthesize alertTitleTextFont = _alertTitleTextFont; | ||
@synthesize alertMessageTextColor = _alertMessageTextColor; | ||
@synthesize alertMessageTextFont = _alertMessageTextFont; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters