Use CGColor and remove PlatformColor
This commit is contained in:
@@ -5,8 +5,8 @@ import Foundation
|
||||
extension CGContext {
|
||||
func draw(_ displayNode: Math.DisplayNode, foregroundColor: CGColor) {
|
||||
let foregroundColor =
|
||||
displayNode.localTextColor?.cgColor
|
||||
?? displayNode.textColor?.cgColor
|
||||
displayNode.localTextColor
|
||||
?? displayNode.textColor
|
||||
?? foregroundColor
|
||||
|
||||
switch displayNode {
|
||||
|
||||
Reference in New Issue
Block a user