diff --git a/PRW.swift b/PRW.swift index 8036136..a26d763 100644 --- a/PRW.swift +++ b/PRW.swift @@ -3,22 +3,12 @@ import Lists import Palette import SnapKit import UIKit +final class DeploymentCheckRunCell: UITableViewCell, Bindable { final class DeploymentCheckRunCell: UITableViewCell, Bindable { final class DeploymentCheckRunCell: UITableViewCell, Bindable { -final class DeploymentCheckRunCell: UITableViewCell, Bindable { +final class DeploymentCheckRunCell: UITableViewCell, Bindable {final class DeploymentCheckRunCell: UITableViewCell, Bindable { - private static let iconSize = grid(5) - private let titleLabel = applying(UILabel(), compose( - Palette.numberOfLines(0), - Palette.textColor(Asset.textPrimary.color), - Palette.font(.preferredFont(forTextStyle: .body)) - )) - private let trailingTitleLabel = applying(UILabel(), compose( - Palette.numberOfLines(0), - Palette.textColor(Asset.textTertiary.color), - Palette.font(.preferredFont(forTextStyle: .callout)) - )) private let leadingIconImageView = applying(UIImageView(), compose( Palette.image(Asset.workflow24.image), @@ -73,6 +63,19 @@ final class DeploymentCheckRunCell: UITableViewCell, Bindable { rotateAnimation.isRemovedOnCompletion = false return rotateAnimation }() + private static let iconSize = grid(5) + + private let titleLabel = applying(UILabel(), compose( + Palette.numberOfLines(0), + Palette.textColor(Asset.textPrimary.color), + Palette.font(.preferredFont(forTextStyle: .body)) + )) + + private let trailingTitleLabel = applying(UILabel(), compose( + Palette.numberOfLines(0), + Palette.textColor(Asset.textTertiary.color), + Palette.font(.preferredFont(forTextStyle: .callout)) + )) func bind(viewModel: CheckRunViewModel) { titleLabel.text = viewModel.name