How nigle99/virtualview-ios works
VirtualView is an iOS runtime for dynamically creating and displaying UI components described in XML and compiled to .out templates. The principal workflow is author XML, compile it, load the binary template, create a component, bind data and calculate layout, then display it. The graph includes the documented layout, widget, and specialized-view capabilities. Source excerpts are mostly API declarations, so edges beyond README-described workflow and explicitly documented manager behavior are omitted rather than inferred.
Main entry points: VVViewContainer.h View container · VVTemplateManager.h Template manager · Loader Template loaders · VVBaseNode.h Node tree
Components 17
Template loading
- .out template
- Template manager
VirtualView/Loader/VVTemplateManager.h - Template loaders
VirtualView/Loader
Component runtime
- View container
VirtualView/Core/VVViewContainer.h - Node tree
VirtualView/Core/VVBaseNode.h - Node creator
VirtualView/Creater/VVNodeCreater.h - Property setters
VirtualView/Creater/Setter
Layouts and views
- Layout implementations
VirtualView/Node/Layout - Widgets and layers
VirtualView/Node/Widget - Specialized views
VirtualView/Node/Magic
Runtime support
- Runtime definitions
VirtualView/Core/VVDefines.h - Observer support
VirtualView/Observer/VVObserver.h - View utilities
VirtualView/Utils/UIView+VirtualView.h
Other components
- Component author
- XML template
- XML compiler
- iOS application
Connections 11
- Component author → XML template: describes
README - XML template → XML compiler: compiled by
README - XML compiler → .out template: produces
README - iOS application → Template manager: loads template
README - Template manager → .out template: loads
README - Template manager → Template loaders: selects loader
VirtualView/Loader/VVTemplateManager.h - iOS application → View container: creates component
README - View container → Node tree: creates tree
- iOS application → View container: binds data
README - iOS application → View container: calculates layout
README - iOS application → View container: displays component
README