A cross-platform Reddit client built in SwiftUI
Last updated Jun 30, 2026
1.3k
Stars
86
Forks
7
Issues
0
Stars/day
Attention Score
62
Language breakdown
No language data available.
โธ Files
click to expand
README

A cross-platform Reddit client created in SwiftUI.
Note: This project is far from complete. It still lacks many features of your typical Reddit client and has bugs (partly due to SwiftUI, but I'll take credit for some of them)
To show off SwiftUI's strength in cross-platform development, I did not use Mac Catalyst for this project. Instead, common UI code is shared between iOS, macOS, and watchOS.
Project Structure
Shared- Models, helpers, API, and any shared Views.Reddit-[PLATFORM]- Each target folder contains aViewsandRepresentablefolder.Viewsholds platform-specific views, andRepresentablecontainsUIViewRepresentablesorNSViewRepresentables.
macOS Specific Features
I've added several things to make the macOS app stand out:- Double click - You can double click on a post to open a new window for the detail view.
NSToolbar- This is implemented entirely in theAppDelegate, and uses standard Cocoa code which interfaces with the SwiftUI views.TouchBar- TODO
SF Symbols
Because macOS doesn't support SF Symbols, I have created the following extension to make sure shared code works. I would like to replace this with custom icons for macOS that it loads fromXCAssets eventually:
/// SwiftUI compatibility
#if os(macOS)
extension Image {
init(systemName: String) {
self.init(nsImage: NSImage())
}
}
#endif๐ More in this category