mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
- Using same clang format file for old and new files. - Moving out all TextSecure code to allow other clients (OS X, iOS) to integrate easily TextSecure functionality. - Use TextSecure API to signup.
35 lines
795 B
Objective-C
35 lines
795 B
Objective-C
//
|
|
// UIFont+OWS.m
|
|
// Signal
|
|
//
|
|
// Created by Dylan Bourgeois on 25/11/14.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "UIFont+OWS.h"
|
|
|
|
@implementation UIFont (OWS)
|
|
|
|
+ (UIFont *)ows_thinFontWithSize:(CGFloat)size {
|
|
return [UIFont systemFontOfSize:size weight:UIFontWeightThin];
|
|
}
|
|
|
|
+ (UIFont *)ows_lightFontWithSize:(CGFloat)size {
|
|
return [UIFont systemFontOfSize:size weight:UIFontWeightLight];
|
|
}
|
|
|
|
+ (UIFont *)ows_regularFontWithSize:(CGFloat)size {
|
|
return [UIFont systemFontOfSize:size weight:UIFontWeightRegular];
|
|
}
|
|
|
|
|
|
+ (UIFont *)ows_mediumFontWithSize:(CGFloat)size {
|
|
return [UIFont systemFontOfSize:size weight:UIFontWeightMedium];
|
|
}
|
|
|
|
+ (UIFont *)ows_boldFontWithSize:(CGFloat)size {
|
|
return [UIFont boldSystemFontOfSize:size];
|
|
}
|
|
|
|
@end
|