diff --git a/Yep/Views/ReusableViews/ProfileSectionHeader/ProfileSectionHeaderReusableView.swift b/Yep/Views/ReusableViews/ProfileSectionHeader/ProfileSectionHeaderReusableView.swift index 5f408954..44f284a6 100644 --- a/Yep/Views/ReusableViews/ProfileSectionHeader/ProfileSectionHeaderReusableView.swift +++ b/Yep/Views/ReusableViews/ProfileSectionHeader/ProfileSectionHeaderReusableView.swift @@ -7,16 +7,27 @@ // import UIKit +import Ruler class ProfileSectionHeaderReusableView: UICollectionReusableView { var tapAction: (() -> Void)? @IBOutlet weak var titleLabel: UILabel! + @IBOutlet weak var titleLabelLeadingConstraint: NSLayoutConstraint! + + @IBOutlet weak var accessoryImageView: UIImageView! + @IBOutlet weak var accessoryImageViewTrailingConstraint: NSLayoutConstraint! + override func awakeFromNib() { super.awakeFromNib() + titleLabelLeadingConstraint.constant = YepConfig.Profile.leftEdgeInset + accessoryImageViewTrailingConstraint.constant = YepConfig.Profile.leftEdgeInset + + accessoryImageView.tintColor = UIColor.darkGrayColor() + let tap = UITapGestureRecognizer(target: self, action: "tap") addGestureRecognizer(tap) } diff --git a/Yep/Views/ReusableViews/ProfileSectionHeader/ProfileSectionHeaderReusableView.xib b/Yep/Views/ReusableViews/ProfileSectionHeader/ProfileSectionHeaderReusableView.xib index 83926a22..71e6c911 100644 --- a/Yep/Views/ReusableViews/ProfileSectionHeader/ProfileSectionHeaderReusableView.xib +++ b/Yep/Views/ReusableViews/ProfileSectionHeader/ProfileSectionHeaderReusableView.xib @@ -1,7 +1,7 @@ - + - + @@ -10,22 +10,40 @@ - + + - + + + + + + + +