Started working on history tracking

This commit is contained in:
James Magahern
2020-08-14 20:05:36 -07:00
parent c6adf599f4
commit c6a27b3fd9
5 changed files with 171 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
//
// 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 ?? ""
}
}