mirror of
https://github.com/lil-org/tokenary.git
synced 2024-11-30 13:02:49 +03:00
28 lines
504 B
Swift
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)
|
|
}
|
|
|
|
}
|