https://github.com/octree/flexibleview
https://github.com/octree/flexibleview
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/octree/flexibleview
- Owner: octree
- License: mit
- Created: 2021-03-25T05:07:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-06T08:06:52.000Z (over 4 years ago)
- Last Synced: 2025-03-06T08:05:48.313Z (over 1 year ago)
- Language: Swift
- Size: 23.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FlexibleView

## Usage
```swift
let flexView = FlexibleView()
flexView.horizentalAlignment = .center
flexView.horizontalSpacing = .fixed(8)
flexView.verticalSpacing = .fixed(8)
flexView.contentInsets = .init(top: 8, left: 8, bottom: 8, right: 8)
tags.forEach {
flexView.addFlexibleItem(TagLabel(tagName: $0))
}
```
## Installation
### Swift Package Manager
* File > Swift Packages > Add Package Dependency
* Add https://github.com/octree/FlexibleView.git
* Select "Up to Next Major" with "1.0.0"
### CocoaPods
```ruby
pod 'FlexibleView'
```
## License
Pretty is released under the MIT license. See LICENSE for details.