518886912c
We'll need this for other event types
26 lines
476 B
Swift
26 lines
476 B
Swift
//
|
|
// RelativeTime.swift
|
|
// damus
|
|
//
|
|
// Created by William Casarin on 2023-06-01.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct RelativeTime: View {
|
|
@ObservedObject var time: RelativeTimeModel
|
|
|
|
var body: some View {
|
|
Text(verbatim: "\(time.value)")
|
|
.font(.system(size: 16))
|
|
.foregroundColor(.gray)
|
|
}
|
|
}
|
|
|
|
|
|
struct RelativeTime_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
RelativeTime(time: RelativeTimeModel())
|
|
}
|
|
}
|