I'm trying to change the color of the caret in a SwiftUI textfield.
I tried:
.accentColor(Color.init(red: 0.34, green: 0.31, blue: 0.23, opacity: 1.00))
But I get an error stating "'accentColor' is unavailable in macOS". Any way to achieve the same goal in MacOS? .foregroundColor only changes text colour but not the caret.
