Skip to content

Commit c946ecf

Browse files
committed
docs: ✏️ In-app download of new community snippets
1 parent 01b6db2 commit c946ecf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ macOS application to explore code snippets from the Swift and iOS community, vie
1717
- Easily add snippets you like to Xcode
1818

1919
![addToXcode](https://user-images.githubusercontent.com/4176826/174482001-6d3eacf4-34a8-4554-bde6-6cc8122bd1da.gif)
20+
21+
- In-app download of new snippets from the community
22+
23+
![downloadLatestCommunitySnippets](https://user-images.githubusercontent.com/4176826/174482617-983f72e2-e88a-46a5-9018-c4e24b6c7fe1.gif)

XCSnippetsApp/Model/AppStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ extension AppStore {
241241
func downloadLatestCommunitySnippets() {
242242
Task {
243243
do {
244-
guard let downloadURL = URL(string: "https://gist.githubusercontent.com/MarcoEidinger/d716f1264d936e0615f6ed8c3dc34c0a/raw/4bb4bf67c73d1775a27c16ef2709afe512c98009/Snippets.json") else {
244+
guard let downloadURL = URL(string: "https://raw.githubusercontent.com/MarcoEidinger/XCSnippetsApp/main/XCSnippetsApp/CodeSnippets/snippets.json") else {
245245
throw AppError.incorrectDownloadURL
246246
}
247247
let response = try await URLSession.shared.data(from: downloadURL)

0 commit comments

Comments
 (0)