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 active.
I've noticed it in Apple Catalyst apps (e.g. News) in recent betas so I'm hoping it's just a bug.
Has anyone found any way to remove it otherwise?
In swift you can do
extension UITextView {
#if targetEnvironment(macCatalyst)
@objc(_focusRingType)
var focusRingType: UInt {
return 1 //NSFocusRingTypeNone
}
#endif
}
It helps to disable focus ring in all "view" classes in Catalyst
extension UIView {
#if targetEnvironment(macCatalyst)
@objc(_focusRingType)
var focusRingType: UInt {
return 1 //NSFocusRingTypeNone
}
#endif
}
Please don't do this - this is a focus indicator for accessibility and is important for keyboard-only users.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With