mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-11 06:55:23 +00:00
40 lines
1.1 KiB
Objective-C
40 lines
1.1 KiB
Objective-C
//
|
|
// Utilities.h
|
|
// ASDKgram
|
|
//
|
|
// Created by Hannah Troisi on 3/9/16.
|
|
// Copyright © 2016 Hannah Troisi. All rights reserved.
|
|
//
|
|
#include <UIKit/UIKit.h>
|
|
@interface UIColor (Additions)
|
|
|
|
+ (UIColor *)lighOrangeColor;
|
|
+ (UIColor *)darkBlueColor;
|
|
+ (UIColor *)lightBlueColor;
|
|
|
|
@end
|
|
|
|
@interface UIImage (Additions)
|
|
|
|
+ (UIImage *)followingButtonStretchableImageForCornerRadius:(CGFloat)cornerRadius following:(BOOL)followingEnabled;
|
|
+ (void)downloadImageForURL:(NSURL *)url completion:(void (^)(UIImage *))block;
|
|
|
|
- (UIImage *)makeCircularImageWithSize:(CGSize)size;
|
|
|
|
@end
|
|
|
|
@interface NSString (Additions)
|
|
|
|
// returns a user friendly elapsed time such as '50s', '6m' or '3w'
|
|
+ (NSString *)elapsedTimeStringSinceDate:(NSString *)uploadDateString;
|
|
|
|
@end
|
|
|
|
@interface NSAttributedString (Additions)
|
|
|
|
+ (NSAttributedString *)attributedStringWithString:(NSString *)string
|
|
fontSize:(CGFloat)size
|
|
color:(UIColor *)color
|
|
firstWordColor:(UIColor *)firstWordColor;
|
|
|
|
@end |