SwiftUIMasonry
1.3
Score

SwiftUI Masonry Layout Component

What is SwiftUIMasonry?

SwiftUIMasonry is a library providing SwiftUI views to create Pinterest-like masonry layouts with flexible configurations, suitable for iOS, macOS, tvOS, and watchOS apps.

Swift
SwiftUI
Layout

Summary of SwiftUIMasonry

  • 👍

    Configurable horizontal and vertical spacing.

  • 👍

    Adaptive and fixed line configurations available.

  • 👍

    Can be initialized with data sources for dynamic content.

  • 👍

    Default `fill` or `order` masonry placement modes.

  • 🤝

    Supports iOS 14.0+, macOS 11.0+, tvOS 14.0+, watchOS 7.0+.

Built by

Ciaran O'Brien
Ciaran O'Brien
@ciaranrobrien

Last push
4 years ago
Stars
192

Forks
13
Open Issues
2
Closed Issues
13
SwiftUIMasonry offers SwiftUI views that help developers arrange UI elements in a Pinterest-like masonry layout. This component includes HMasonry for horizontal arrangements and VMasonry for vertical arrays. The views allow customizable spacing between children and can adapt in size using `adaptive` and `fixed` configurations. Additionally, developers can initialize these views with data sources, dynamically creating child views.