Skip to content

Make String.toRGBA internal - #32

Open
Jeehut wants to merge 1 commit into
mainfrom
wip/internal-torgba
Open

Jeehut wants to merge 1 commit into
mainfrom
wip/internal-torgba

Conversation

@Jeehut

@Jeehut Jeehut commented Nov 21, 2026

Copy link
Copy Markdown
Member

String.toRGBA() is a helper for Color(hex:) and was public by accident. It is now internal; Color(hex:) stays public and works as before. Its DocC entry is removed, and a new test covers the helper through @testable import.

How this was verified

  • swift test --build-system swiftbuild: 41 tests in 13 suites passed, including the existing Color(hex:) round-trip tests.
  • A search in the apps that use HandySwiftUI found no call of toRGBA().
  • Review: Code ✓ · Design – · QA –

Note: this PR and the search-highlight PR change neighbouring lines in Extensions.md; the second one to merge needs a small rebase.

Door one-way for external callers (source break, meant for 3.0.0) · Blast Radius breit (public API, re-exported by FlineDevKit)

toRGBA() is a helper for Color(hex:) and was public by accident. No
known app uses it. Make it internal for 3.0.0, drop it from the
documentation and cover it with a test through @testable import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant