Skip to content

Show the real search terms in the SFSymbol documentation example - #30

Open
Jeehut wants to merge 1 commit into
mainfrom
wip/sfsymbol-docc-example
Open

Jeehut wants to merge 1 commit into
mainfrom
wip/sfsymbol-docc-example

Conversation

@Jeehut

@Jeehut Jeehut commented Nov 21, 2026

Copy link
Copy Markdown
Member

The DocC example for SFSymbol.searchTerms printed ["airplane", "flight", "travel", "transport"], but SFSymbol.airplane actually returns ["flight", "travel", "plane", "transportation", "journey"]. The example now shows the real output, and a new test checks that the example stays true.

How this was verified

  • Red on main (589e450): the new test failed against the old documented output.
  • Green on the branch: swift test --build-system swiftbuild, 41 tests in 14 suites passed.
  • Review: Code ✓ · Design – · QA –

Door two-way · Blast Radius lokal

The example for searchTerms claimed SFSymbol.airplane returns
["airplane", "flight", "travel", "transport"], but the list has no
"airplane" or "transport". Show the terms the code returns and add a
test that keeps the example true.
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