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
ContainerView
in your xib/code. - Add childViewController using
containerView.addArrangedViewController
. 🎉
Container<T>
ContainerView with - Conform your ViewController classes as
Instantiatable
. - Conform your ViewController classes
Injectable
,Interactable
if need. - Add
ContainerView
in 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>.dequeued
support TableView cells.🎉
Reference
My Presentation. https://www.icloud.com/keynote/0vgTYDXyHQTd0l1FKTiF1jT7g#MicroViewController-en
Supporting
Supported | |
---|---|
ContainerView | |
Container | |
Environment, Testing support | WIP |
UITableView support | |
UICollectionView support |
Committers
All Mercari iOS team.
Contribution
Please read the CLA below carefully before submitting your contribution.
License
Copyright 2018 Mercari, Inc.
Licensed under the MIT License.