I\'m currently in the process of porting my iOS app to macOS using Project Catalyst.
All of my text fields, text views and table views have a blue outline when activ
A slight improvement to Amerino's answer for greater flexibility and use in Storyboards:
@IBDesignable
class UITextViewCS: UITextView {
@IBInspectable
public var focusRing: UInt = 1 // 0-default, 1-None, 2-Exterior
#if targetEnvironment(macCatalyst)
@objc(_focusRingType)
var focusRingType: UInt {
guard [0, 1, 2].contains(focusRing) else { return 0 }
return focusRing
}
#endif
}