Swiftpack.co - W1W1-M/PackAPrefPane as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by W1W1-M.
W1W1-M/PackAPrefPane 1.0.2
Reusable & customizable SwiftUI settings sheet as a Swift package
⭐️ 1
🕓 6 days ago
iOS macOS
.package(url: "https://github.com/W1W1-M/PackAPrefPane.git", from: "1.0.2")

PackAPrefPane

Reusable & customizable SwiftUI settings sheet as a Swift package

Initial version made at November 2021 SwiftUI Jam https://www.swiftuijam.com

PackAPrefPane Logo

Features

  • Swift package
  • 100% Swift
  • 100% SwiftUI
  • Simple design
  • Lightweight
  • Customizable
  • Localizable
  • Open source
  • Target: iOS 14 >

PackAPrefPane preview

Usage

  • Import PackAPrefPane Swift package
  • Setup a var with PrefPaneData type and customize each variable to your needs
  • Setup your nested appSettingsView within a SwiftUI Section view
  • Make sure you have a var for showing sheets settingsSheetPresented: Bool
  • Use PackAPrefPane view with the above variables as in this example:
PackAPrefPane(  
    settingsSheetPresented: yourSheetbool,  
    prefPaneData: yourPrefPaneData  
) {  
    Section(header: Text("Your nested app settings view section")) {  
        YourNestedAppSettingsView()  
    }  
}  

Custom TYPES

Project resources

  • Mind map in MindNode format
  • Logo design in AffinityDesigner format

License

PackAPrefPane is designed and coded by W1W1-M and released under MIT license

GitHub

link
Stars: 1
Last commit: 1 hour ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

PackAPrefPane V1.0.2
3 days ago

Bug fix release

  • Localization fix

Project assets:

  • Mind map in MindNode format
  • Logo design in AffinityDesigner format

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics