How matiasvillaverde/mobile-ios-vipergame works
Main Components
A. VIPER Module Structure (Core Game Module):
• View Layer (UI Components)
• Interactor (Business Logic)
• Presenter (Presentation Logic)
• Entity (Data Models)
• Router/WireFrame (Navigation)
B. Data Management:
• Local Data Manager
• Content Management (content.json)
C. Supporting Components:
• Utilities
• Resources
• Localization
• Hexagon for View (GameViewController, GameView, CardCell)
• Rectangle for Presenter (GamePresenter)
• Circle for Interactor (GameInteractor)
• Diamond for Entity (Card, Content, Logo)
• Rounded Rectangle for Router (GameWireFrame)
• Blue: View layer components
• Green: Business logic (Interactor)
• Yellow: Presentation logic (Presenter)
• Purple: Data models (Entities)
• Orange: Navigation (Router)
• Gray: Supporting utilities and services
Component Relationships
a. User Interface Flow:
• View ←→ Presenter ←→ Interactor
b. Data Flow:
• Interactor ←→ Local Data Manager
• Interactor ←→ Entities
c. Navigation Flow:
• View ←→ Router
Specific Implementation Details
Key elements:
a. Game Module Structure:
• Application Logic/
• DataManager/
• Entity/
• Interactor/
b. User Interface/
• View/
• Presenter/
• WireFrame/
c. Supporting Systems:
• Utilities (ArrayRandom, ErrorAlert, File, etc.)
• Localization (en.lproj, de.lproj)
• Assets (card images)