Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarinofaggiana <marino@marinofaggiana.com>2020-12-22 17:11:47 +0300
committermarinofaggiana <marino@marinofaggiana.com>2020-12-22 17:11:47 +0300
commitbdd48abe6a7751f84dd42d4e6203e633f5d2fd70 (patch)
tree5d2a4f525aeb92b11f4b3f9dff1237889d480a3d /iOSClient/Settings
parent7bce0460a6339e528d5e8bbdb641e6b3b63c96e1 (diff)
coding Avatar
Diffstat (limited to 'iOSClient/Settings')
-rw-r--r--iOSClient/Settings/CCManageAccount.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/iOSClient/Settings/CCManageAccount.m b/iOSClient/Settings/CCManageAccount.m
index 63851e347..ea133f510 100644
--- a/iOSClient/Settings/CCManageAccount.m
+++ b/iOSClient/Settings/CCManageAccount.m
@@ -61,8 +61,9 @@
if (avatar) {
avatar = [avatar resizeImageWithSize:CGSizeMake(35, 35) isAspectRation:false];
- NCAvatar *avatarImageView = [[NCAvatar alloc] initWithImage:avatar borderColor:[UIColor whiteColor] borderWidth:1];
-
+ UIImageView *avatarImageView = [[UIImageView alloc] initWithImage:avatar];
+ [avatarImageView avatarWithRoundness:2 borderWidth:1 borderColor:[UIColor lightGrayColor] backgroundColor:[UIColor clearColor]];
+
CGSize imageSize = avatarImageView.bounds.size;
UIGraphicsBeginImageContextWithOptions(imageSize, NO, UIScreen.mainScreen.scale);
CGContextRef context = UIGraphicsGetCurrentContext();