bug for configuration
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
16a6a41178
commit
6b97472103
@ -129,8 +129,10 @@ public class ControlColorConfiguration: KeyColorConfigurable {
|
||||
public func getColor(_ object: any ObjectType) -> UIColor {
|
||||
let state = object.state
|
||||
let surface = object.surface
|
||||
|
||||
if let keyColor = keyColors.first(where: {$0.key.isSubset(of: state) }) {
|
||||
|
||||
if let keyColor = keyColors.first(where: {$0.key == state }) {
|
||||
return keyColor.surfaceConfig.getColor(surface)
|
||||
} else if let keyColor = keyColors.first(where: {$0.key.isSubset(of: state) }) {
|
||||
return keyColor.surfaceConfig.getColor(surface)
|
||||
} else {
|
||||
return .clear
|
||||
|
||||
Loading…
Reference in New Issue
Block a user