Post

Replies

Boosts

Views

Activity

Comment on .disabled() doesn't VISUALLY disable buttons inside ToolbarItem on iOS 26 devices
Ok, I can confirm that disabled now behaves as expected if I bring the toolbar out of the view building function of the child view to the parent view.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’25
Comment on .disabled() doesn't VISUALLY disable buttons inside ToolbarItem on iOS 26 devices
The toolbar is on a TextField that's inside a view building function.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’25
Comment on .disabled() doesn't VISUALLY disable buttons inside ToolbarItem on iOS 26 devices
Additional context: the toolbar is used on a TextField that's inside a view building function.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’25
Comment on .disabled() doesn't VISUALLY disable buttons inside ToolbarItem on iOS 26 devices
I can replicate the same bug. When inside .toolbar{}, .disabled() does not work visually change a button when using .borderedProminent or .glassProminent button styles.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’25