What is the correct way to draw an anti-aliased line in SwiftUI?
Let's say a straight, white line on black background, 2 points wide and slightly rotated off the horizontal orientation.
I've tried a Rectangle() with .fill(style: FillStyle(antialiased: true)) and .frame(width: 2, height: 100), but setting antialiased to true or false did not make any difference. I could not find any anti-aliasing options for Path.
Let's say a straight, white line on black background, 2 points wide and slightly rotated off the horizontal orientation.
I've tried a Rectangle() with .fill(style: FillStyle(antialiased: true)) and .frame(width: 2, height: 100), but setting antialiased to true or false did not make any difference. I could not find any anti-aliasing options for Path.