Tusker/Tusker/Screens/Compose/Drafts/DraftTableViewCell.swift

22 lines
476 B
Swift
Raw Normal View History

2018-10-23 02:09:11 +00:00
//
// DraftsTableViewCell.swift
// Tusker
//
// Created by Shadowfacts on 10/22/18.
// Copyright © 2018 Shadowfacts. All rights reserved.
//
import UIKit
class DraftTableViewCell: UITableViewCell {
@IBOutlet weak var contentLabel: UILabel!
@IBOutlet weak var lastModifiedLabel: UILabel!
func updateUI(for draft: DraftsManager.Draft) {
contentLabel.text = draft.text
lastModifiedLabel.text = draft.lastModified.timeAgoString()
}
}