{"id":20033535,"url":"https://github.com/jihoonahn/xcodesnippet","last_synced_at":"2025-05-05T05:31:13.823Z","repository":{"id":64642134,"uuid":"576859777","full_name":"jihoonahn/XcodeSnippet","owner":"jihoonahn","description":"Snippet Creation Tool for Swift developers","archived":true,"fork":false,"pushed_at":"2023-03-14T14:08:10.000Z","size":37,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T04:17:02.945Z","etag":null,"topics":["cli","codesnippets","snippet","swift","swift-package-manager","xcode","xcode-snippets","xcodesnippets"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jihoonahn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-11T08:03:54.000Z","updated_at":"2023-07-04T14:39:58.000Z","dependencies_parsed_at":"2024-11-13T09:46:57.943Z","dependency_job_id":"7ba4fb5e-9510-42cd-b3ff-fe1c3d3351a6","html_url":"https://github.com/jihoonahn/XcodeSnippet","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihoonahn%2FXcodeSnippet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihoonahn%2FXcodeSnippet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihoonahn%2FXcodeSnippet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jihoonahn%2FXcodeSnippet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jihoonahn","download_url":"https://codeload.github.com/jihoonahn/XcodeSnippet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252445887,"owners_count":21749135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","codesnippets","snippet","swift","swift-package-manager","xcode","xcode-snippets","xcodesnippets"],"created_at":"2024-11-13T09:46:41.747Z","updated_at":"2025-05-05T05:31:13.536Z","avatar_url":"https://github.com/jihoonahn.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/68891494/206922287-5c034eb8-8cd0-4c03-9c95-233aeae4b40f.svg\" width=\"500\" max-width=\"90%\" alt=\"XcodeSnippet\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Swift-5.5-orange.svg\" /\u003e\n    \u003ca href=\"https://swift.org/package-manager\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/swiftpm-compatible-brightgreen.svg?style=flat\" alt=\"Swift Package Manager\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n**XcodeSnippet** provides the ability to save or use the codeSnippet that you set up.\n\n## Snippet as Swift packages\nThe usage of XcodeSnippet is very similar to that of Snippet in traditional Xcode.\nProjects are defined as Swift Packages, all of which use the default format type-safe swift code.\n\n```swift\nimport XcodeSnippet\n\nstruct SnippetEx: Snippet {\n    var xcodeSnippet: [XcodeSnippet] = []\n}\n\ntry snippetEx().install()\n```\nYou can use it like this. XcodeSnipet is really simple, right?\n\n## Installation\nXcodeSnippet was deployed as Swift Package Manager. Package to install in a project. Add as a dependent item within the swift manifest.\n```swift\nlet package = Package(\n    ...\n    dependencies: [\n        .package(url: \"https://github.com/JiHoonAHN/XcodeSnippet.git\", from: \"0.1.1\")\n    ],\n    ...\n)\n```\nThen import the XcodeSnipet from the location you want to use.\n```swift\nimport XcodeSnippet\n```\n\nXcodeSnippet also comes with command-line tools to easily create projects for easy project support.\n```\n$ git clone https://github.com/JiHoonAHN/XcodeSnippet.git\n$ cd XcodeSnippet\n$ make\n```\n\nThen run the instructions on how to use `XcodeSnippet help`.\n\n## Quick start\nTo start XcodeSnippet faster, clone this repository, install the command-line tool, and run `make` within the replicated folder.\n\n```\n$ git clone https://github.com/JiHoonAHN/XcodeSnippet.git\n$ cd XcodeSnippet\n$ make\n```\n\n_**Note**: If you encounter an error while running `make`, ensure that you have your Command Line Tools location set from Xcode's preferences. It's in Preferences \u003e Locations \u003e Locations \u003e Command Line Tools. The dropdown will be blank if it hasn't been set yet._\n\nThen, create a new folder for your new Snippet project and simply run `xcodeSnippet new` within it to get started:\n\n```\n$ mkdir MySnippet\n$ cd MySnippet\n$ xcodeSnippet new\n```\nFinally, run `open Package.swift` to open up the project in Xcode to start making your snippet Setting!\n\n## License\n**XcodeSnippet** is under MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihoonahn%2Fxcodesnippet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjihoonahn%2Fxcodesnippet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjihoonahn%2Fxcodesnippet/lists"}