mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-15 16:36:36 +00:00
39 lines
1.0 KiB
Objective-C
39 lines
1.0 KiB
Objective-C
//
|
|
// Utilities.h
|
|
// ASDKgram
|
|
//
|
|
// Created by Hannah Troisi on 3/9/16.
|
|
// Copyright © 2016 Hannah Troisi. All rights reserved.
|
|
//
|
|
|
|
@interface UIColor (Additions)
|
|
|
|
+ (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 |