david-swift / SettingsKit-macOS

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

Create a simple sample app #8

Closed antranapp closed 1 year ago

antranapp commented 1 year ago

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

No response

Describe the solution you'd like

Hi @david-swift ,

thank you very much for creating such a great package.

I'm looking for a library which can help me to create a native setting screen for my macOS app and I have just found this repo.

I find that it'd be helpful for us if we can have a sample app demonstrating some common usages for this package.

Wdyt?

Describe alternatives you've considered

N/A

Additional context

N/A

antranapp commented 1 year ago

This might be an inspiration https://github.com/aheze/Setting

david-swift commented 1 year ago

Hi @antranapp,

Thanks for opening the issue! Currently, this package can help creating settings windows in the native style that is used by Apple for app-specific preferences:

Screenshot 2023-09-17 at 16 35 37

As I think it is also nice to have the possibility to create app-specific settings windows in that design, I've just added an option for changing the look (the code for adding such a settings window is exactly the same except for one line defining the style that is used):

Screenshot 2023-09-17 at 16 37 39

I've created a sample app showcasing both designs and generally how to use this package:

https://github.com/david-swift/SettingsKit-macOS/assets/106754840/a4e518ce-3acc-4c63-a70d-2d5d5ec0abe7

Thank you very much for that link! I'll update the readme, and then release the next version with the new style and example added!

david-swift commented 1 year ago

So I've released SettingsKit 0.2.0 which adds the option to change the style of the settings window and also adds a simple sample app. Let me know whether it helps, @antranapp, and if you have questions, ideas or find bugs, don't hesitate to open issues!

david-swift commented 1 year ago

Additionally to the sample app here, I've now also added documentation here. @antranapp, I hope that helps!

antranapp commented 1 year ago

This is fantastic. Thank you very much for great package