IOS-1163 Expanded cell with round shape.
authorborja <borja@helm.cat>
Tue, 24 Jul 2018 10:58:34 +0200
changeset 5623485aee5e32e9
parent 5622 2b7639a17f5e
child 5624 dd87f56bdfd4
IOS-1163 Expanded cell with round shape.
pEpForiOS/UI/Thread/Cells/FullMessageCell.swift
     1.1 --- a/pEpForiOS/UI/Thread/Cells/FullMessageCell.swift	Tue Jul 24 10:47:13 2018 +0200
     1.2 +++ b/pEpForiOS/UI/Thread/Cells/FullMessageCell.swift	Tue Jul 24 10:58:34 2018 +0200
     1.3 @@ -44,7 +44,6 @@
     1.4          }
     1.5      }
     1.6  
     1.7 -
     1.8      @IBOutlet weak var view: UIView!
     1.9      func configure(for viewModel:MessageViewModel) {
    1.10          isFlagged = viewModel.isFlagged
    1.11 @@ -88,7 +87,9 @@
    1.12  
    1.13      override func awakeFromNib() {
    1.14          super.awakeFromNib()
    1.15 -        // Initialization code
    1.16 +        self.profilePicture.layer.cornerRadius = round(profilePicture.bounds.size.width / 2)
    1.17 +        self.profilePicture.layer.masksToBounds = true
    1.18 +        
    1.19      }
    1.20  
    1.21      override func setSelected(_ selected: Bool, animated: Bool) {