A SwiftUI library for creating resizable partitions and grids to build composable, dynamically sized user interfaces.
PartitionKit is a SwiftUI library designed for creating resizable partitions and grids to build composable and dynamically sized user interfaces. It solves the need for flexible layout management in SwiftUI apps by providing components like vertical partitions, horizontal partitions, and grid partitions that can be nested and resized with draggable handles.
SwiftUI developers building iOS, macOS, tvOS, or watchOS apps who need dynamic, resizable layouts for content partitioning and grid-based interfaces.
Developers choose PartitionKit for its simplicity and composability—it offers intuitive SwiftUI components that make dynamic layout creation straightforward without complex configuration, and it supports nesting for advanced UI structures.
A SwiftUI Library for creating resizable partitions for View Content.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
The library uses intuitive SwiftUI syntax with simple closures for partitions, as shown in the README examples where VPart, HPart, and GridPart are defined with minimal code.
Partitions and grids can be nested within each other for complex UI structures, demonstrated in examples like nestedExample and nestedGridsExample in the README.
It supports all major Apple platforms including macOS 10.15+, iOS 13+, tvOS 13+, and watchOS 6+, as specified in the requirements section.
Optional draggable handles allow interactive resizing of partitions, a core feature highlighted in the README for building adaptable user interfaces.
The Todo list admits that partitions can cause negative frame values and invert views when dragged beyond bounds, indicating a current lack of built-in safeguards.
The developer notes the need to add more customizability to initial layouts, suggesting that current options are basic and may not cover advanced use cases.
All handles and partition views must be custom-defined by the developer, as evidenced by examples using shapes like Circle, requiring additional styling effort.