Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tune HTML's documentation. #30

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Sources/Slipstream/Views/W3C/Elements/HTML.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,23 @@ import SwiftSoup

/// The html element represents the root of a document.
///
/// Every web page starts with an HTML view.
///
/// ```swift
/// struct MySite: View {
/// var body: some View {
/// HTML {
/// // Your site's content.
/// }
/// }
/// }
/// ```
///
/// View the full [W3C specification](https://www.w3.org/TR/2012/WD-html-markup-20121025/html.html#html).
///
/// ## See Also
///
/// - ``View/language(_:)``
@available(iOS 17.0, macOS 14.0, *)
public struct HTML<Content>: View where Content: View {
public init(@ViewBuilder content: @escaping () -> Content) {
Expand Down