toastersocks/flow
---
Usage
import Flow
struct ContentView: View {
@State var tags: [Tag]
var body: some View {
// Default .topLeading alignment and system spacing.
Flow {
ForEach(tags) { tag in
TagView(tag)
}
}
// Alignment and spacing specified.
Flow(alignment: .bottomTrailing, spacing: 10) {
ForEach(tags) { tag in
TagView(tag)
}
}
}
}Check the documentation for more in-depth usage.
Installing
Swift Package Manager
Via Xcode
- Select your
.xcprojectfile - Select the project under
PROJECT - Select
Swift Package - Tap the
+sign - Paste this repo's address
https://github.com/toastersocks/Flowinto the text field and hit 'Next' - Choose your version/branch on the next screen
- Choose your targets and hit 'Finish'
Package Metadata
Repository: toastersocks/flow
Default branch: main
README: README.md