Skip to content

Fix option name in Low Data Mode documentation#2560

Open
meliharik wants to merge 1 commit into
onevcat:masterfrom
meliharik:docs-fix-lowdatamode-option-name
Open

Fix option name in Low Data Mode documentation#2560
meliharik wants to merge 1 commit into
onevcat:masterfrom
meliharik:docs-fix-lowdatamode-option-name

Conversation

@meliharik

Copy link
Copy Markdown

The Low Data Mode article documents the option as .lowDataSource, but that case does not exist. KingfisherOptionsInfo.swift:383 declares:

case lowDataMode(Source?)

lowDataSource appears nowhere in Sources/ or Tests/ outside this one article, so the four occurrences here are the only place it is used. The tests use the real name — ImageViewExtensionTests.swift:934 ([.lowDataMode(.network(url))]) and KingfisherManagerTests.swift:1141.

The first snippet was also missing a closing paren:

-    options: [.lowDataSource(.network(lowResolutionURL)]
+    options: [.lowDataMode(.network(lowResolutionURL))]

swiftc -parse reports 6 errors on that block before the change and 0 after.

Documentation only — one file, no code or test changes.

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