Skip to content

docs: polish the README intro and fix a non-compiling CHANGELOG snippet - #88

Merged
NuPlay merged 2 commits into
mainfrom
docs/readme-polish
Aug 29, 2026
Merged

docs: polish the README intro and fix a non-compiling CHANGELOG snippet#88
NuPlay merged 2 commits into
mainfrom
docs/readme-polish

Conversation

@NuPlay

@NuPlay NuPlay commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Follow-up to #87.

README intro

The description was one 40-word sentence listing four features by comma, followed by a second sentence repeating the Swift, iOS and macOS versions that the badges state directly above it.

Split into three short lines. The version sentence is dropped as redundant with the badges.

Before

A modern, powerful, and type-safe SwiftUI component for rendering HTML content with extensive styling options, async/await support, media interaction, and comprehensive error handling. Built for Swift 5.9+ and optimized for iOS 15.0+ and macOS 12.0+.

After

Render HTML in SwiftUI.

RichText sizes itself to its content, so HTML fits into a layout like any other view.

Styling, light and dark theming, custom fonts, media callbacks and typed errors are built in.

Duplicate divider

A stray second --- sat above the Features heading, left behind when the README was split in #87.

Checked every other document for the same pattern — no further occurrences.

CHANGELOG snippet did not compile

The error-handling example had comment-only case bodies:

case .cssGenerationFailed:
    // fontColor or linkColor holds an invalid hex value ...
case .webViewConfigurationFailed:

Swift rejects that with "'case' label in a 'switch' should have at least one executable statement", so copying the snippet produced a compile error. Added the missing break to both cases.

The same defect was fixed in the 3.1.0 release notes. Every ```swift block across README, `CHANGELOG`, `CONTRIBUTING` and `docs/` was scanned for the pattern — these two were the only occurrences.

NuPlay added 2 commits August 29, 2026 18:56
The description was one 40-word sentence listing four features by comma, then a
second sentence repeating the Swift, iOS and macOS versions that the badges
state directly above it.

Split into three short lines and dropped the version sentence as redundant.

Also removed a stray second `---` above the Features heading, left behind when
the README was split into separate documents.
The switch had comment-only case bodies:

    case .cssGenerationFailed:
        // fontColor or linkColor holds an invalid hex value ...
    case .webViewConfigurationFailed:

Swift rejects that with "'case' label in a 'switch' should have at least one
executable statement", so anyone copying the snippet hit a compile error.
Added the missing `break` to both.

Same defect was fixed in the 3.1.0 release notes. Scanned every ```swift block
across README, CHANGELOG, CONTRIBUTING and docs/ for the pattern; these two were
the only occurrences.
Copilot AI lite review requested due to automatic review settings August 29, 2026 09:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@NuPlay NuPlay self-assigned this Aug 29, 2026
@NuPlay NuPlay added the documentation Improvements or additions to documentation label Aug 29, 2026
@NuPlay
NuPlay merged commit bc81299 into main Aug 29, 2026
1 check passed
@NuPlay
NuPlay deleted the docs/readme-polish branch August 29, 2026 10:00
NuPlay added a commit that referenced this pull request Aug 29, 2026
…et (#88)

The description was one 40-word sentence listing four features by comma,
followed by a second sentence repeating the Swift, iOS and macOS versions that
the badges state directly above it. Split into three short lines and dropped the
version sentence as redundant.

Removed a stray second `---` above the Features heading, left behind when the
README was split into separate documents.

Gave the documentation table a header row. It was written with empty header
cells, and GitHub still renders the header, so it showed as a blank grey strip
above the first row.

The CHANGELOG error-handling snippet had comment-only case bodies, which Swift
rejects with "'case' label in a 'switch' should have at least one executable
statement". Added the missing `break` to both cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants