Post

Replies

Boosts

Views

Activity

Reply to Dual .fileImporter modifier only one is called
I'm having the same problem. Apparently chaining .fileImporter modifiers doesn't work in SwifUI. And this doesn't seem to be documented anywhere. I'm going to take the approach of using a single .fileImporter and a separate variable to control which file type/behavior to use. I would love to see if anyone has any other suggestions for handling multiple file importer dialogs in a single app.
Topic: UI Frameworks SubTopic: SwiftUI
Nov ’25
Reply to NavigationSplitView: Make button clickable in detail-section safe area
I responded to one of your other posts from October 23 with this comment: I'm facing this same issue in macOS 26 (Tahoe), almost two years after the last activity on this thread. Out of pure luck, I discovered that if you set the button style to .buttonStyle(.borderless) then the button becomes clickable. I have no idea why that works and the other button styles don't. By the way, I don't have this problem on the iPad, using the same code. The buttons are clickable there. Does anybody have any other tips on how to have a custom, clickable toolbar in the safe area when using NavigationSplitView? I still want the system toolbar visible in the sidebar, but I want to have my own UI in the top edge of the detail view.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’25
Reply to NavigationSplitView detail view with safearea
I'm facing this same issue in macOS 26 (Tahoe), almost two years after the last activity on this thread. Out of pure luck, I discovered that if you set the button style to .buttonStyle(.borderless) then the button becomes clickable. I have no idea why that works and the other button styles don't. By the way, I don't have this problem on the iPad, using the same code. The buttons are clickable there. Does anybody have any other tips on how to have a custom, clickable toolbar in the safe area when using NavigationSplitView? I still want the system toolbar visible in the sidebar, but I want to have my own UI in the top edge of the detail view.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’25