{"id":21619086,"url":"https://github.com/bannzai/resourcekit","last_synced_at":"2025-07-19T18:02:48.195Z","repository":{"id":62452829,"uuid":"56327614","full_name":"bannzai/ResourceKit","owner":"bannzai","description":"Enable autocomplete use resources in swift project.","archived":false,"fork":false,"pushed_at":"2018-05-09T10:17:43.000Z","size":32584,"stargazers_count":89,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T05:00:02.395Z","etag":null,"topics":[],"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/bannzai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-15T14:47:42.000Z","updated_at":"2023-04-11T05:43:47.000Z","dependencies_parsed_at":"2022-11-01T23:46:13.468Z","dependency_job_id":null,"html_url":"https://github.com/bannzai/ResourceKit","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FResourceKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FResourceKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FResourceKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bannzai%2FResourceKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bannzai","download_url":"https://codeload.github.com/bannzai/ResourceKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362498,"owners_count":21091141,"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":[],"created_at":"2024-11-24T23:07:51.635Z","updated_at":"2025-04-11T08:42:45.418Z","avatar_url":"https://github.com/bannzai.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ResourceKit\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n![platform](https://cocoapod-badges.herokuapp.com/p/ResourceKit/badge.png)\n\n\nEnable autocomplete use resources in swift project.\n\n[まだハードコードで消耗してるの？ ResourceKitで安全コーディング！](http://qiita.com/bannzai/items/e9bf5904940fb1ed5082)\n\n## How does ResourceKit work?\nResouceKit makes your code that uses write for resources:\n - `Becomes clear`, nessary to cast and guessing easy what a method will return.\n - `Checked`, the mistaken character doesn't enter your app code.\n - `Autocompleted`, never have to exist hard code when using resource.\n\n##### Standard use resources.\n\n```swift\n// Get ViewController\nlet storyboard = UIStoryboard(name: \"Storyboard\", bundle: nil)\nlet viewController = storyboard.instantiateViewController(withIdentifier: \"XXXX\") as! ViewController\n\n// PerformSegue\nperformSegue(withIdentifier: \"Open\", sender: sender)\n\n// Nib\nlet nib = UINib(nibName: \"TableViewCell\", bundle: nil)\nlet cell = nib.instantiate(withOwner: nil, options: nil)[0] as! TableViewCell\n```\nPlease see `ResouceKitDemo` for more information, or [Examples.md](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md)\n\n##### Use ResourceKit.\n```swift\n// Get ViewController\nlet viewController = ViewController.instanceFromStoryboard() // \u003c- viewController is ViewController class.\n\n// PerformSegue\nperformSegueOpen() // \u003c- can write to use autocomplete.\n\n// Nib\nlet cell = TableViewCell.Xib.view() // \u003c- easy get instance.\n```\n\n\n## Features\n\nAfter installing ResourceKit into your project, and build it.\nResourceKit will correct any missing/changed/added resources.\n\nResouceKit supports resource types.\n - [Storyboards](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md#viewcontroller-from-storyboard)\n - [Segues](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md#use-segue-any-uiviewcontroller-sub-class)\n - [Nibs](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md#nib)\n - [Reusables](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md#reusalbes)\n - [Images](https://github.com/xcodeswift/xcproj/blob/master/Sources/xcproj/PBXProj%2BHelpers.swift#L122)\n - [LocalizedStrings](https://github.com/bannzai/ResourceKit/blob/master/Documents/Examples.md#localizedstring)\n\n## Installation\nCocoaPods is the recommended way of installation, as this avoids including any binary files into your project.\n\n### Cocoapods\n1. Add `pod 'ResourceKit'` to your Podfile and run pod install.\n2. In Xcode: Click on your project in the file list, choose your target under TARGETS, click the Build Phases tab and add a New Run Script Phase by clicking the little plus icon in the top left.\n3. Drag the new Run Script phase above the Compile Sources phase and below Check Pods Manifest.lock, expand it and paste the following script: ``\"$PODS_ROOT/ResourceKit/ResourceKit\"``\n4. Build your project, in Finder you will now see a ResourceKit.generated.swift in the $SRCROOT-folder, drag the ResourceKit.generated.swift files into your project and uncheck Copy items if needed\n\n### Manual\n1. Download a [ResourceKit](https://github.com/bannzai/ResourceKit/releases/) , unzip it and put it your source root directory.\n2. In Xcode: Click on your project in the file list, choose your target under TARGETS, click the Build Phases tab and add a New Run Script Phase by clicking the little plus icon in the top left\n3. Drag the new Run Script phase above the Compile Sources phase, expand it and paste the following script: \"$SRCROOT/ResourceKit\"\n4. Build your project, in Finder you will now see a `ResourceKit.generated.swift` in the $SRCROOT-folder, drag the `ResourceKit.generated.swift` files into your project and uncheck Copy items if needed.\n\n## TODO:\n - [x] Cocoapods support.  \n - [x] Images support.  \n - [x] LocaliazedString Support.  \n - [x] Adjust indent.\n - [x] Collaboration [SegueAddition](https://github.com/bannzai/SegueAddition).\n - [x] User Chose Generate Resource Support.  \n\n## Help:\n##### Q.When want to use a Third party UI Library, how should it be done  \nA. You can write `import CustomView` to `ResourceKit.generated.swift`.  \nAnd build again, but It's left `import CustomView`!\n\n\n\n## License\n[ResourceKit](https://github.com/bannzai/ResourceKit) is released under the MIT license. See LICENSE.txt for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbannzai%2Fresourcekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbannzai%2Fresourcekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbannzai%2Fresourcekit/lists"}