The FlexLayout's Example exposes some usage example of FlexLayout.
The Example App is available in 2 versions:
* [SPM (using Swift Package Manager)](https://github.com/layoutBox/FlexLayout/tree/master/Example/SPM)
* [Cocoapods](https://github.com/layoutBox/FlexLayout/tree/master/Example/cocoapods)
### Running the SPM (Swift Package Manager) Example app
1. Open the Xcode project `Example/SPM/FlexLayoutSample-SPM.xcodeproj`.
3. Select the `FlexLayoutSample-SPM` target.
4. Run the app on your device or simulator.
### Running the Cocoapods Example app
1. Do a `pod install` from the `Example/cocoapods` directory.
2. Open the newly generated `FlexLayout.xcworkspace` Xcode workspace.
3. Select the `FlexLayoutSample` target.
4. Run the app on your device or simulator.
## Intro Example
FlexLayout introduction example.
[Source code](https://github.com/layoutBox/FlexLayout/blob/master/Example/FlexLayoutSample/UI/Examples/Intro/IntroView.swift)
## Ray Wenderlich Yoga Tutorial
An implementation of the [Ray Wenderlich Yoga Tutorial](https://www.raywenderlich.com/161413/yoga-tutorial-using-cross-platform-layout-engine). This example is the most complete one.
[Source code](https://github.com/layoutBox/FlexLayout/blob/master/Example/FlexLayoutSample/UI/Examples/RaywenderlichTutorial)
## UITableView with variable size cells.
This example show how FlexLayout can be used to layout UITableView cells that have variables sizes.
[Source code](https://github.com/layoutBox/FlexLayout/blob/master/Example/FlexLayoutSample/UI/Examples/TableViewExample)
## UICollectionView with variable size cells
This example show how FlexLayout can be used to layout UICollectionView cells that have variables sizes.
[Source code](https://github.com/layoutBox/FlexLayout/blob/master/Example/FlexLayoutSample/UI/Examples/CollectionViewExample)
## Yoga's examples Implementation
Implementation of all [Yoga's examples](https://facebook.github.io/yoga/)
| C | | [Source code](https://github.com/layoutBox/FlexLayout/blob/master/Example/FlexLayoutSample/UI/Examples/YogaExampleA/YogaExampleAView.swift) |
|---------|:-:|:-:|
| Obj-C | | [Source code](https://github.com/layoutBox/FlexLayout/blob/master/Example/FlexLayoutSample/UI/Examples/YogaExampleB/YogaExampleBView.swift) |
| Java | | [Source code](https://github.com/layoutBox/FlexLayout/blob/master/Example/FlexLayoutSample/UI/Examples/YogaExampleC/YogaExampleCView.swift) |
| C# | | [Source code](https://github.com/layoutBox/FlexLayout/blob/master/Example/FlexLayoutSample/UI/Examples/YogaExampleD/YogaExampleDView.swift) |
| Android | | [Source code](https://github.com/layoutBox/FlexLayout/blob/master/Example/FlexLayoutSample/UI/Examples/YogaExampleE/YogaExampleEView.swift) |