We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
periphery
1 parent 48b424b commit cbba364Copy full SHA for cbba364
DesignToolbox/DesignToolbox/Pages/Tokens/Dimension/Space/SpaceTokenCommonIllustration.swift
@@ -216,7 +216,10 @@ struct SpaceIllustrationIcon: View {
216
let asset: Asset?
217
218
var body: some View {
219
- if let asset {
+ // NOTE: Periphery thinks "asset" is assigned but never used (false positive)
220
+ // See issue https://github.com/peripheryapp/periphery/issues/909
221
+ // Keep the "if let asset = asset" workaround and not "if let asset"
222
+ if let asset = asset {
223
Image(decorative: asset.imageName)
224
.resizable()
225
.renderingMode(.template)
0 commit comments