CardParts is the second-generation Card UI framework for the iOS Mint application. This version includes many updates to the original card part framework, including improved MVVM, data binding (via RxSwift), use of stack views and self-sizing collection views instead of sizing cells, 100% swift and much more. The result is a much simpler, easier-to-use, more powerful, and easier-to-maintain framework. This framework is currently used by the iOS Mint application and the iOS Turbo application. There are two major parts to the card parts framework. The first is the CardsViewController which will display the cards. It is responsible for displaying cards in the proper order and managing the lifetime of the cards. The second major component is the cards themselves which are typically instances of CardPartsViewController. Each instance of CardPartsViewController displays the content of a single card, using one or more card parts (more details later).
Features
- Requires iOS 10.0+
- Needs Xcode 10.2+
- Uses Swift 5.0+
- Improved MVVM, data binding (via RxSwift), use of stack views
- Self sizing collection views
- Each card must implement the CardController protocol