david-swift / SettingsKit-macOS

Add a settings window to a SwiftUI macOS app
https://david-swift.github.io/SettingsKit-macOS/
MIT License
87 stars 2 forks source link

Is it possible to open the Setting window and automatically select a tab? #11

Closed longseespace closed 5 months ago

longseespace commented 5 months ago

Is your feature request related to a problem? Please describe.

Basically the title. Is it possible to trigger the Setting window to select a tab after showing up

Describe the solution you'd like

A method or some other way to set which tab to focus on. Maybe a Binding when creating the Setting View?

Describe alternatives you've considered

Not sure.

Additional context

Not sure.

david-swift commented 5 months ago

One can pass a binding for the selected tab to the settings modifier since 23fd02d. Does this solve your problem?

longseespace commented 5 months ago

Oh that’s perfect. I’m so dumb. Sorry for wasting your time

david-swift commented 5 months ago

No, thanks for opening the feature request, I've just added it one hour ago (with commit 23fd02d) because of your request!

david-swift commented 5 months ago

It's available in version 0.2.4