프로젝트
GitHub에서 보기
carson-katri/reddit-swiftui
소개
SwiftUI로 구축한 크로스 플랫폼 Reddit 클라이언트입니다.
웹 및 앱 개발What you can do
- Double click - You can double click on a post to open a new window for the detail view.
- NSToolbar - This is implemented entirely in the AppDelegate, and uses standard Cocoa code which interfaces with the SwiftUI views.
- TouchBar - TODO
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -3
- in 1 month
- -5
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
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 from XCAssets eventually:
/// `SwiftUI` compatibility
#if os(macOS)
extension Image {
init(systemName: String) {
self.init(nsImage: NSImage())
}
}
#endif
관련 프로젝트 살펴보기
불러오는 중…