Syntax highlighting in a SwiftUI TextField

  Kiến thức lập trình

I’m at my wits’ end trying to figure out how to make a SwiftUI TextField display text highlighted the way I need. Ultimately, I’d like to be able to apply a couple of different Regex patterns as the user types and to apply different .bacgroundColor modifiers to specific match results.

Is this even possible with SwiftUI?

LEAVE A COMMENT