Mew
Mew copied to clipboard
The framework that support making MicroViewController.
Mew (μ)
iOS MicroViewController support library.
Installation
Carthage
The latest version is 0.2.0
github "mercari/Mew"
CocoaPods
pod 'Mew', :git => 'https://github.com/mercari/Mew.git'
Usage
ContainerView with Manual Control
- Add
ContainerViewin your xib/code. - Add childViewController using
containerView.addArrangedViewController. - 🎉
ContainerView with Container<T>
- Conform your ViewController classes as
Instantiatable. - Conform your ViewController classes
Injectable,Interactableif need. - Add
ContainerViewin your xib/code. - Add childViewController using
containerView.makeContainer. - 🎉
Cells
- Conform your TableViewController class as
Instantiatable. - Conform your CellViewController class as
Instantiatable,Injectable. TableViewCell<CellViewController>.register,TableViewCell<CellViewController>.dequeuedsupport TableView cells.- 🎉
Reference
My Presentation. https://www.icloud.com/keynote/0vgTYDXyHQTd0l1FKTiF1jT7g#MicroViewController-en
Supporting
| Supported | |
|---|---|
| ContainerView | ✅ |
| Container<T> | ✅ |
| Environment, Testing support | WIP |
| UITableView support | ✅ |
| UICollectionView support | ✅ |
Committers
All Mercari iOS team.
Contribution
Please read the CLA below carefully before submitting your contribution.
https://www.mercari.com/cla/
License
Copyright 2018 Mercari, Inc.
Licensed under the MIT License.