Skip to content

Commit 3205040

Browse files
committed
light target will support color if any of the lights contained support color
1 parent 4b95929 commit 3205040

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/LightTarget.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,14 +404,14 @@ public class LightTarget {
404404
}
405405

406406
public var supportsColor: Bool {
407-
return !(lights.map { $0.hasColor }.contains(false))
407+
return lights.map { $0.hasColor }.contains(true)
408408
}
409409

410410
public var supportsIR: Bool {
411-
return !(lights.map { $0.hasIR }.contains(false))
411+
return lights.map { $0.hasIR }.contains(true)
412412
}
413413

414414
public var supportsMultiZone: Bool {
415-
return !(lights.map { $0.hasMultiZone }.contains(false))
415+
return lights.map { $0.hasMultiZone }.contains(true)
416416
}
417417
}

0 commit comments

Comments
 (0)