Last active
April 8, 2016 22:25
-
-
Save thebnich/8168fc2666c961043042f9595b864290 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Client/Frontend/Widgets/TwoLineCell.swift b/Client/Frontend/Widgets/TwoLineCell.swift | |
index 34580dc..c7223f1 100644 | |
--- a/Client/Frontend/Widgets/TwoLineCell.swift | |
+++ b/Client/Frontend/Widgets/TwoLineCell.swift | |
@@ -14,6 +14,7 @@ private let DetailTextTopMargin = CGFloat(5) | |
class TwoLineTableViewCell: UITableViewCell { | |
private let twoLineHelper = TwoLineCellHelper() | |
+ private let borderView = UIView() | |
let _textLabel = UILabel() | |
let _detailTextLabel = UILabel() | |
@@ -38,6 +39,11 @@ class TwoLineTableViewCell: UITableViewCell { | |
indentationWidth = 0 | |
layoutMargins = UIEdgeInsetsZero | |
separatorInset = UIEdgeInsetsMake(0, ImageSize + 2 * ImageMargin, 0, 0) | |
+ | |
+ borderView.layer.borderWidth = 1 | |
+ borderView.layer.borderColor = UIColor.redColor().CGColor | |
+ borderView.frame.size = CGSizeMake(32, 32) | |
+ addSubview(borderView) | |
} | |
required init?(coder aDecoder: NSCoder) { | |
@@ -47,6 +53,8 @@ class TwoLineTableViewCell: UITableViewCell { | |
override func layoutSubviews() { | |
super.layoutSubviews() | |
twoLineHelper.layoutSubviews() | |
+ | |
+ borderView.center = imageView!.center | |
} | |
override func prepareForReuse() { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment