#import <UIKit/UIKit.h>
@interface UIFont (APCAppearance)
+ (UIFont*) appRegularFontWithSize: (CGFloat) size;
+ (UIFont*) appMediumFontWithSize: (CGFloat) size;
+ (UIFont*) appLightFontWithSize: (CGFloat) size;
+ (UIFont*) appNavBarTitleFont;
+ (UIFont*) appQuestionLabelFont;
+ (UIFont*) appQuestionOptionFont;
@end
#import "UIFont+APCAppearance.h"
#import "APCAppearanceInfo.h"
#import "APCConstants.h"
@implementation UIFont (APCAppearance)
+ (UIFont*) appRegularFontWithSize: (CGFloat) size
{
return [UIFont fontWithName:[APCAppearanceInfo valueForAppearanceKey:kRegularFontNameKey] size:size];
}
+ (UIFont*) appMediumFontWithSize: (CGFloat) size
{
return [UIFont fontWithName:[APCAppearanceInfo valueForAppearanceKey:kMediumFontNameKey] size:size];
}
+ (UIFont*) appLightFontWithSize: (CGFloat) size
{
return [UIFont fontWithName:[APCAppearanceInfo valueForAppearanceKey:kLightFontNameKey] size:size];
}
+ (UIFont*) appNavBarTitleFont {
return [UIFont appMediumFontWithSize:17.0f];
}
+ (UIFont*) appQuestionLabelFont {
return [UIFont appRegularFontWithSize:17.0f];
}
+ (UIFont*) appQuestionOptionFont {
return [UIFont appRegularFontWithSize:44.0f];
}
@end