Highlight a specific part of the text in SwiftUI
If that requires just simple word styling then here is possible solution. Tested with Xcode 11.4 / iOS 13.4 struct ContentView: View { let testo : String = “There is a thunderstorm in the area. Added some testing long text to demo that wrapping works correctly!” var body: some View { hilightedText(str: testo, searched: “thunderstorm”) … Read more