Swiftpack.co - berbschloe/FlexView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by berbschloe.
berbschloe/FlexView 1.0.4
A SwiftUI Flex based Layout
⭐️ 8
🕓 2 years ago
iOS
.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: 8
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

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