mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
2c83046ff6
- Use single MessagesViewController. Goal: Being able to reuse that UI for SplitViewController on iPad. Prevents unnecessary deallocations and re-allocations. - Remove custom archiving UI for default swipe right to left archive action, like in iOS Mail.app. - DynamicType for main view. - Simplify API of MessagesViewController to prevent undefined behavior. //FREEBIE
28 lines
520 B
Objective-C
28 lines
520 B
Objective-C
//
|
|
// UIFont+OWS.h
|
|
// Signal
|
|
//
|
|
// Created by Dylan Bourgeois on 25/11/14.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface UIFont (OWS)
|
|
|
|
+ (UIFont *)ows_thinFontWithSize:(CGFloat)size;
|
|
|
|
+ (UIFont *)ows_lightFontWithSize:(CGFloat)size;
|
|
|
|
+ (UIFont *)ows_regularFontWithSize:(CGFloat)size;
|
|
|
|
+ (UIFont *)ows_mediumFontWithSize:(CGFloat)size;
|
|
|
|
+ (UIFont *)ows_boldFontWithSize:(CGFloat)size;
|
|
|
|
|
|
#pragma mark Dynamic Type
|
|
|
|
+ (UIFont *)ows_dynamicTypeBodyFont;
|
|
|
|
@end
|