https://github.com/djs66256/ddflexbox
An flexbox layout aimed at easy to use, which depend on Yoga.
https://github.com/djs66256/ddflexbox
flexbox swift yoga
Last synced: 3 months ago
JSON representation
An flexbox layout aimed at easy to use, which depend on Yoga.
- Host: GitHub
- URL: https://github.com/djs66256/ddflexbox
- Owner: djs66256
- License: mit
- Created: 2021-09-12T09:15:39.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-21T15:32:08.000Z (about 4 years ago)
- Last Synced: 2024-11-08T09:45:16.918Z (11 months ago)
- Topics: flexbox, swift, yoga
- Language: Swift
- Homepage:
- Size: 62.5 KB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# DDFlexbox
A flexbox framework for easy using.
# Install
```
pod 'DDFlexbox'
```# Template install
Recommend using templates to create flexbox views.
```sh
cd Script/
sh install.sh
```# Getting start
An UITableViewCell layout likes:
```swift
flexbox.row.padding(10).alignItems(.center).setup({ (b) in
b.bindView(myImageView).width(40).height(40)
b.blocker(width: 10)
b.column.flexGrow(1).flexShrink(1).setup { (b) in
b.bindView(myTextLabel)
b.bindView(myDetailTextLabel)
}
})
```# Debug
```swift
FlexboxDebugEnable = true
```# Feature
1. Easy to use. It more simple than AutoLayout.
2. Work well with AutoLayout.
3. Manage by node tree, not view tree. So you do not need concern `addSubview` and the view hierarchy.
4. Virtual node to reduce the deep of view tree.