We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b4c9e2 commit b55dd5bCopy full SHA for b55dd5b
Sources/MarkdownUI/Views/Inlines/ImageView.swift
@@ -106,18 +106,6 @@ private struct ImageViewFrameModifier: ViewModifier {
106
let size: MarkdownImageSize?
107
108
func body(content: Content) -> some View {
109
- if let size {
110
- if let width = size.width, let height = size.height {
111
- content.frame(width: width, height: height)
112
- } else if let width = size.width, size.height == nil {
113
- content.frame(width: width)
114
- } else if let height = size.height, size.width == nil {
115
- content.frame(height: height)
116
- } else {
117
- content
118
- }
119
120
121
+ content.frame(width: size?.width, height: size?.height)
122
}
123
0 commit comments