SwiftUIPlus is a small collection of reusable SwiftUI layout utilities for common UI problems that the built-in stacks do not handle directly.
Current package contents:
EqualWidthHStack: anHStack-style layout where every child takes the width of the widest childEqualWidthVStack: aVStack-style layout where every child takes the width of the widest childAutoSizeLazyVGridForEnum: a simple enum-driven grid that groupsCaseIterablevalues into rows
- iOS 16+
- macOS 13+
- Swift 6 tools
In Xcode:
- Open your project.
- Go to
File > Add Package Dependencies... - Enter this repository URL:
https://github.com/hw0102/SwiftUIPlus.git - Choose a version rule and add the
SwiftUIPlusproduct.
If you are depending on the package in another Swift package:
dependencies: [
.package(url: "https://github.com/hw0102/SwiftUIPlus.git", from: "0.1.0")
]Then add the product to your target:
.target(
name: "YourTarget",
dependencies: [
.product(name: "SwiftUIPlus", package: "SwiftUIPlus")
]
)Each utility folder includes its own usage guide:
SwiftUI gives you strong primitives, but some layout behaviors still require custom Layout types or repetitive data transformation. This package extracts a few of those patterns into reusable building blocks.
This package is versioned with Git tags using semantic versioning:
PATCHfor fixesMINORfor new backward-compatible additionsMAJORfor breaking API changes
The package manifest is currently:
- library product:
SwiftUIPlus - platforms: iOS 16 and macOS 13
- tools version: Swift 6.0
See CONTRIBUTING.md for contribution guidelines and pull request expectations.
MIT.