removed surface since it isn't used anywhere
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
fc6b2991b8
commit
d66d4d0e26
@ -104,7 +104,7 @@ open class Tilelet: TileContainerBase<Tilelet.Padding>, ParentViewProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private var backgroundColorSurface: Surface {
|
private var backgroundColorSurface: Surface {
|
||||||
backgroundColorConfiguration.getColor(self).surface
|
backgroundColorConfiguration.getColor(self).isDark() ? .dark : .light
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -187,10 +187,4 @@ extension UIColor {
|
|||||||
guard let found else { return nil}
|
guard let found else { return nil}
|
||||||
return found
|
return found
|
||||||
}
|
}
|
||||||
|
|
||||||
public var surface: Surface {
|
|
||||||
var greyScale: CGFloat = 0
|
|
||||||
getWhite(&greyScale, alpha: nil)
|
|
||||||
return greyScale < 0.5 ? .dark : .light
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user