Post

Replies

Boosts

Views

Activity

Change foreground colour of search bar’s “cancel” button.
When using the new searchable(text:) modifier introduced in SwiftUI 3, I am seeing that changing the accentColor using tint(_:) or even the deprecated accentColor(_:) modifier doesn’t work as expected as the “cancel” button remains blue. How would I approach this situation and change the foreground colour of it. Any help would be appreciated, Thanks in advance.
2
2
3.7k
Sep ’23
Change foreground colour of search bar’s “cancel” button.
When using the new searchable(text:) modifier introduced in SwiftUI 3, I am seeing that changing the accentColor using tint(_:) or even the deprecated accentColor(_:) modifier doesn’t work as expected as the “cancel” button remains blue. How would I approach this situation and change the foreground colour of it. Any help would be appreciated, Thanks in advance.
Replies
2
Boosts
2
Views
3.7k
Activity
Sep ’23