This repository was archived by the owner on Feb 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
WordPressAuthenticator/Unified Auth/View Related/Reusable Views Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,6 @@ class GravatarEmailTableViewCell: UITableViewCell {
2121 public static let reuseIdentifier = " GravatarEmailTableViewCell "
2222 public var onChangeSelectionHandler : ( ( _ sender: UITextField ) -> Void ) ?
2323
24- override func awakeFromNib( ) {
25- super. awakeFromNib ( )
26- containerView. layer. cornerRadius = 8
27- containerView. layer. borderColor = UIColor . systemGray3. cgColor
28- }
29-
3024 /// Public Methods
3125 ///
3226 public func configure( withEmail email: String ? , andPlaceholder placeholderImage: UIImage ? = nil , hasBorders: Bool = false ) {
@@ -45,8 +39,8 @@ class GravatarEmailTableViewCell: UITableViewCell {
4539
4640 gravatarImageView? . downloadGravatarWithEmail ( email, placeholderImage: placeholderImage ?? gridicon)
4741
48- gravatarImageViewSizeConstraints. forEach { constraints in
49- constraints . constant = gridicon. size. width
42+ gravatarImageViewSizeConstraints. forEach { constraint in
43+ constraint . constant = gridicon. size. width
5044 }
5145
5246 let margin : CGFloat = hasBorders ? 16 : 0
@@ -55,6 +49,8 @@ class GravatarEmailTableViewCell: UITableViewCell {
5549 }
5650
5751 containerView. layer. borderWidth = hasBorders ? 1 : 0
52+ containerView. layer. cornerRadius = hasBorders ? 8 : 0
53+ containerView. layer. borderColor = hasBorders ? UIColor . systemGray3. cgColor : UIColor . clear. cgColor
5854 }
5955
6056 func updateEmailAddress( _ email: String ? ) {
You can’t perform that action at this time.
0 commit comments