mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-27 17:00:12 +08:00
19 lines
336 B
Swift
19 lines
336 B
Swift
//
|
|
// ShowMoreDetailsLabel+Date.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 6/8/17.
|
|
// Copyright © 2017 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
extension ShowMoreDetailsLabel {
|
|
|
|
func setText(date: Date) {
|
|
text = date.agoString
|
|
detailText = DateDetailsFormatter().string(from: date)
|
|
}
|
|
|
|
}
|