How andruxa7/onboarding works
Project type and purpose
• This is a native iOS onboarding application built with UIKit.
• Purpose: present a step-by-step onboarding flow with questions and options, fetch content from a remote API, then offer a subscription via StoreKit 2.
• Architecture: Model-View-Presenter (MVP).
File structure
• Top-level Xcode project files (.xcodeproj, Info.plist, AppDelegate, SceneDelegate) → standard iOS app bootstrap.
• API folder
– OnboardingData.swift (data model for API response)
– OnboardingService.swift (network layer calling GET /onboarding)
– OnboardingUseCase.swift (business-logic layer orchestrating fetch & state).
• MainPageView folder → UI entry point:
– MainPageViewController.swift (ViewController for the first page)
– MainPagePresenter.swift (Presenter for that screen).
• OnboardingFeature folder → question screens:
– QuestionViewController.swift (UI for each onboarding card)
– QuestionModel.swift (question model)
– AnswerCell.swift (table/collection cell).
• Subscription folder → StoreKit 2 integration:
– Products.storekit (local product stubs)
– Store.swift (subscription manager).
• SuccessViewController.swift and PremiumViewController.swift → final screens.
• Utils/Environment.swift → runtime configuration (e.g., API base URL).
• Assets.xcassets + LaunchScreen.storyboard.
README for insights
• Confirms MVP and dynamic onboarding cards via remote API.
• No extra dependencies except SnapKit for layout.
• iOS 16 target, UIKit-only.