Skip to content

Commit

Permalink
Fix an issue where SVG title were not displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
LiYanan2004 committed Feb 3, 2023
1 parent 215012a commit cc407fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/MarkdownView/Image/Providers/NetworkImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct NetworkImage: View {
.frame(maxWidth: 50, alignment: .leading)
}

let isLoaded = imageSize != .zero || !isSupported
let isLoaded = image != nil || svg != nil
if isLoaded, let alt {
Text(alt)
.foregroundStyle(.secondary)
Expand Down

0 comments on commit cc407fb

Please sign in to comment.