Files
GitHawk/Classes/Issues/Labeled/IssueLabeledCell.swift
James Sherlock a504a87033 Use AttributedStringCell for IssueLabeledCell (#1071)
* Use AttributedStringCell for IssueLabeledCell

* Code review changes
2017-11-26 12:31:27 -05:00

28 lines
578 B
Swift

//
// IssueLabeledCell.swift
// Freetime
//
// Created by Ryan Nystrom on 6/6/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import UIKit
import SnapKit
final class IssueLabeledCell: AttributedStringCell {
static let insets = UIEdgeInsets(
top: Styles.Sizes.inlineSpacing,
left: Styles.Sizes.eventGutter,
bottom: Styles.Sizes.inlineSpacing,
right: Styles.Sizes.eventGutter
)
// MARK: Public API
func configure(_ model: IssueLabeledModel) {
set(attributedText: model.attributedString)
}
}