From 24e026dbe16142018b8bbb0d29730e6401ffdcf6 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Fri, 15 May 2015 16:31:53 +0800 Subject: [PATCH] ProfileSocialAccountImagesCell imageView corner --- .../ProfileSocialAccountImagesCell.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Yep/Views/Cells/ProfileSocialAccount/ProfileSocialAccountImagesCell.swift b/Yep/Views/Cells/ProfileSocialAccount/ProfileSocialAccountImagesCell.swift index 8bda7eb0..5b8959e0 100644 --- a/Yep/Views/Cells/ProfileSocialAccount/ProfileSocialAccountImagesCell.swift +++ b/Yep/Views/Cells/ProfileSocialAccount/ProfileSocialAccountImagesCell.swift @@ -71,6 +71,15 @@ class ProfileSocialAccountImagesCell: UICollectionViewCell { accessoryImageView.tintColor = UIColor.lightGrayColor() iconImageViewLeadingConstraint.constant = YepConfig.Profile.leftEdgeInset accessoryImageViewTrailingConstraint.constant = YepConfig.Profile.rightEdgeInset + + let cornerRadius: CGFloat = 2 + imageView1.layer.cornerRadius = cornerRadius + imageView2.layer.cornerRadius = cornerRadius + imageView3.layer.cornerRadius = cornerRadius + + imageView1.clipsToBounds = true + imageView2.clipsToBounds = true + imageView3.clipsToBounds = true } func configureWithProfileUser(profileUser: ProfileUser?, orSocialWorkProviderInfo socialWorkProviderInfo: ProfileViewController.SocialWorkProviderInfo, socialAccount: SocialAccount, socialWork: SocialWork?, completion: ((SocialWork) -> Void)?) {