Swiftpack.co -  berbschloe/FlexView as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
berbschloe/FlexView
A SwiftUI Flex based Layout
.package(url: "https://github.com/berbschloe/FlexView.git", from: "1.0.4")

FlexView

Swift SwiftPm SwiftUI

Inspired by: FiveStarsBlog/Flexible-SwiftUI

Requirements

  • iOS 13.0+
  • Xcode 12.0+
  • Swift 5.3+

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

dependencies: [
    .package(url: "https://github.com/berbschloe/FlexView.git", from: "1.0.0")
]

Usage

FlexView(data: ["One", "Two", "Three"], spacing: 8, alignment: .leading) { item in 
    Text(verbatim: item)
        .padding(8)
        .background(RoundedRectangle(cornerRadius: 8).fill(Color.gray.opacity(0.2))
}   

GitHub

link
Stars: 0
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

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