How joseph-bond-github/emailclient works
EmailClient is an in-progress SwiftUI email client. The visible workflow is app launch into a login screen, credential submission through a login view model to an IMAP-backed service, and—after successful login—a home screen intended to show a folder’s message list. The mail-service protocol separates login from its SwiftMail implementation. Inbox loading and message presentation are placeholders; the README’s offline storage, search, and full IMAP/SMTP support are roadmap items, not implemented capabilities. Edges reflect shown calls or documented structure; no message-fetching or persistence flow is established by the excerpts.
Main entry points: ContentView.swift Root view · HomeView.swift Home view · SwiftMailService.swift SwiftMail adapter · LoginView.swift Login view
Components 12
App and navigation
- App entry
EmailClient/App/EmailClientApp.swift - Root view
EmailClient/App/ContentView.swift - Home view
Shared/Views/HomeView.swift - Home model
Shared/Views/HomeViewModel.swift
Login and mail access
- Login view
EmailClient/Features/Login/LoginView.swift - Login model
EmailClient/Features/Login/LoginViewModel.swift - Mail protocol
EmailClient/Services/MailService.swift - SwiftMail adapter
EmailClient/Services/SwiftMailService.swift
Inbox interface
- Message list
EmailClient/Features/Inbox/MessageListView.swift - List model
EmailClient/Features/Inbox/MessageListViewModel.swift
Other components
- User
- IMAP server
Connections 11
- User → Root view: uses app
- App entry → Root view: launches
EmailClient/App/EmailClientApp.swift - Root view → Login view: shows logged out
EmailClient/App/ContentView.swift - Root view → Home view: shows logged in
EmailClient/App/ContentView.swift - Login view → Login model: submits credentials
EmailClient/Features/Login/LoginView.swift - Login model → SwiftMail adapter: checks login
EmailClient/Features/Login/LoginViewModel.swift - SwiftMail adapter → Mail protocol: implements
EmailClient/Services/SwiftMailService.swift - SwiftMail adapter → IMAP server: connects and logs in
EmailClient/Services/SwiftMailService.swift - Home view → Home model: reads folder
Shared/Views/HomeView.swift - Home view → Message list: shows list
Shared/Views/HomeView.swift - Message list → List model: owns view model
EmailClient/Features/Inbox/MessageListView.swift