Files
Attractor/App/Backend/History/HistoryItem.swift

22 lines
405 B
Swift
Raw Normal View History

2020-08-14 20:05:36 -07:00
//
// HistoryItem.swift
// App
//
// Created by James Magahern on 8/14/20.
//
import Foundation
struct HistoryItem: Hashable
{
var url: URL
var title: String
var lastVisited: Date
init(entity: HistoryItemEntity) {
self.url = entity.url ?? URL(string: "about:blank")!
self.lastVisited = entity.lastVisited ?? Date()
self.title = entity.title ?? ""
}
}