tokenary/Shared/Models/PeerMeta.swift
2023-10-17 19:01:35 +03:00

28 lines
504 B
Swift

// Copyright © 2021 Tokenary. All rights reserved.
import Foundation
struct PeerMeta {
let title: String?
let iconURLString: String?
var name: String {
return title ?? Strings.unknownWebsite
}
init(title: String?, iconURLString: String?) {
self.title = title
self.iconURLString = iconURLString
}
}
extension SafariRequest {
var peerMeta: PeerMeta {
return PeerMeta(title: host, iconURLString: favicon)
}
}