-
Notifications
You must be signed in to change notification settings - Fork 508
Open
Description
//
// ArticleDetailView.swift
// Rote
//
// Created by antigravity on 2026/1/13.
//
import MarkdownUI
import SwiftUI
struct ArticleDetailView: View {
let article: Article
@Environment(\.dismiss) private var dismiss
var body: some View {
NavigationStack {
ScrollView {
Markdown(article.content)
.padding()
.markdownTheme(.gitHub) // Use GitHub theme as it's common for markdown
}
.toolbar {
ToolbarItem(placement: .topBarTrailing) {
Button {
HapticType.light.trigger()
dismiss()
} label: {
Image(systemName: "xmark")
}
}
}
}
}
}
I am using a Markdown component on a sheet to display an article, but I have found a problem that the images cannot be displayed completely; they are cut off and exceed the container range. How can I avoid this situation? Thank you for any help you can provide.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels