mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-10-19 12:49:53 +02:00
Fallback icon (#851)
This commit is contained in:
@@ -21,10 +21,18 @@ struct PendingRequestsView: View {
|
|||||||
if let first = group.element.first {
|
if let first = group.element.first {
|
||||||
HStack {
|
HStack {
|
||||||
HStack {
|
HStack {
|
||||||
Image(nsImage: .init(byReferencing: first.provenance.origin.iconURL!))
|
if let iconURL = first.provenance.origin.iconURL {
|
||||||
.resizable()
|
Image(nsImage: .init(byReferencing: iconURL))
|
||||||
.aspectRatio(contentMode: .fit)
|
.resizable()
|
||||||
.frame(width: 50)
|
.aspectRatio(contentMode: .fit)
|
||||||
|
.frame(width: 50)
|
||||||
|
} else {
|
||||||
|
Image(systemName: "app.grid")
|
||||||
|
.resizable()
|
||||||
|
.aspectRatio(contentMode: .fit)
|
||||||
|
.fontWeight(.regular)
|
||||||
|
.frame(width: 50)
|
||||||
|
}
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
Text(first.provenance.origin.displayName)
|
Text(first.provenance.origin.displayName)
|
||||||
.font(.subheadline)
|
.font(.subheadline)
|
||||||
|
|||||||
Reference in New Issue
Block a user