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.
29 lines
816 B
Objective-C
29 lines
816 B
Objective-C
#import "UIUtil.h"
|
|
|
|
#define CONTACT_PICTURE_VIEW_BORDER_WIDTH 0.5f
|
|
|
|
@implementation UIUtil
|
|
|
|
+ (void)applyRoundedBorderToImageView:(UIImageView *__strong *)imageView {
|
|
[[*imageView layer] setBorderWidth:CONTACT_PICTURE_VIEW_BORDER_WIDTH];
|
|
[[*imageView layer] setBorderColor:[[UIColor clearColor] CGColor]];
|
|
[[*imageView layer] setCornerRadius:CGRectGetWidth([*imageView frame]) / 2];
|
|
[[*imageView layer] setMasksToBounds:YES];
|
|
}
|
|
|
|
|
|
+ (void)removeRoundedBorderToImageView:(UIImageView *__strong *)imageView {
|
|
[[*imageView layer] setBorderWidth:0];
|
|
[[*imageView layer] setCornerRadius:0];
|
|
}
|
|
|
|
+ (completionBlock)modalCompletionBlock {
|
|
completionBlock block = ^void() {
|
|
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
|
|
};
|
|
|
|
return block;
|
|
}
|
|
|
|
@end
|