How paulgessinger/swift-paperless works
Swift Paperless is a native iOS client for a self-hosted Paperless-ngx instance. The main workflow is to connect and authenticate to a server, browse or filter documents, inspect and edit document metadata, and rely on local caching and synchronization for offline access. The repository also includes document import and sharing, task monitoring, and settings for connections and offline storage. The graph emphasizes these product stages and the shared data/network layers; some UI and integration relationships are based on README descriptions or source-index references rather than inspected implementation.
Main entry points: DocumentStore.swift Document store · ConnectionManager.swift Connection manager · Repository.swift Repository API · ServerSession.swift Server sessions
Components 22
App experience
- iOS app shell
swift-paperless/swift_paperlessApp.swift - Login and connections
swift-paperless/Views/Login/LoginView.swift - Task activity
AppViews/Sources/AppViews/Views/TaskActivityView.swift - Settings and offline
AppViews/Sources/AppViews/Views/Settings/OfflineSyncView.swift
Document workflows
- Document browsing
swift-paperless/Views/Document/DocumentList.swift - Search and filters
swift-paperless/Views/Filter/FilterBar.swift - Document details
swift-paperless/Views/Document/Detail/DocumentDetailView.swift - Metadata editing
swift-paperless/Views/Document/Detail/V4/DocumentDetailViewV4.swift - Document import
AppViews/Sources/AppViews/Views/Import/DocumentImportModel.swift - Share extension
ShareExtension/ShareViewController.swift - Attachment handling
AppViews/Sources/AppViews/ViewModel/AttachmentManager.swift
Shared app logic
- Document store
AppShared/Sources/AppShared/Document/DocumentStore.swift - Error presentation
AppShared/Sources/AppShared/Error/ErrorController.swift - Document and filter models
DataModel/Sources/DataModel/FilterState.swift
Networking and sync
- Connection manager
AppShared/Sources/AppShared/Networking/ConnectionManager.swift - Server sessions
AppShared/Sources/AppShared/Networking/ServerSession.swift - Sync scheduler
AppShared/Sources/AppShared/Networking/SyncEngine.swift - Repository API
Networking/Sources/Networking/Repository.swift
Local data
- SQLite cache
Persistence/Sources/Persistence/Database.swift - Document content store
Common/Sources/Common/ContentStore.swift
Other components
- User
- Paperless-ngx server
Connections 28
- User → iOS app shell: uses
README.md - iOS app shell → Login and connections: presents
- Login and connections → Connection manager: configures
- User → Document browsing: browses
- Document browsing → Search and filters: filters
- Document browsing → Document details: opens
- Document details → Metadata editing: edits
- Metadata editing → Document store: saves via
- Document details → Document store: reads
- User → Document import: imports
- Share extension → Attachment handling: receives
ShareExtension/ShareViewController.swift - Share extension → Document store: shares through
- User → Settings and offline: configures
- Settings and offline → Connection manager: manages
- Settings and offline → Document store: measures usage
- Connection manager → SQLite cache: observes
AppShared/Sources/AppShared/Networking/ConnectionManager.swift - Connection manager → Server sessions: selects
- Sync scheduler → Connection manager: schedules from
AppShared/Sources/AppShared/Networking/SyncEngine.swift - Sync scheduler → Server sessions: runs sync
AppShared/Sources/AppShared/Networking/SyncEngine.swift - Document store → Server sessions: prepares repository
AppShared/Sources/AppShared/Document/DocumentStore.swift - Document store → Repository API: calls
AppShared/Sources/AppShared/Document/DocumentStore.swift - Document store → Document content store: uses
AppShared/Sources/AppShared/Document/DocumentStore.swift - Server sessions → Repository API: owns
- Repository API → Paperless-ngx server: requests data
- Repository API → SQLite cache: caches data
- Document store → Document and filter models: queries with
AppShared/Sources/AppShared/Document/DocumentStore.swift - Task activity → Document store: shows activity
- Document store → Error presentation: reports failures