xor
A mode that you use to clear pixels where both the source and background images are opaque.
Declaration
static var xor: GraphicsContext.BlendMode { get }Discussion
This mode implements the equation R = S*(1 - Da) + D*(1 - Sa) where
Ris the composite image.Sis the source image.Dis the background.Sais the source image’s alpha value.Dais the source background’s alpha value.
This XOR mode is only nominally related to the classical bitmap XOR operation, which SwiftUI doesn’t support.