ProductPromotion
Logo

Swift

made by https://0x3d.site

GitHub - bannzai/ResourceKit: Enable autocomplete use resources in swift project.
Enable autocomplete use resources in swift project. - bannzai/ResourceKit
Visit Site

GitHub - bannzai/ResourceKit: Enable autocomplete use resources in swift project.

GitHub - bannzai/ResourceKit: Enable autocomplete use resources in swift project.

ResourceKit

MIT License platform

Enable autocomplete use resources in swift project.

まだハードコードで消耗してるの? ResourceKitで安全コーディング!

How does ResourceKit work?

ResouceKit makes your code that uses write for resources:

  • Becomes clear, nessary to cast and guessing easy what a method will return.
  • Checked, the mistaken character doesn't enter your app code.
  • Autocompleted, never have to exist hard code when using resource.
Standard use resources.
// Get ViewController
let storyboard = UIStoryboard(name: "Storyboard", bundle: nil)
let viewController = storyboard.instantiateViewController(withIdentifier: "XXXX") as! ViewController

// PerformSegue
performSegue(withIdentifier: "Open", sender: sender)

// Nib
let nib = UINib(nibName: "TableViewCell", bundle: nil)
let cell = nib.instantiate(withOwner: nil, options: nil)[0] as! TableViewCell

Please see ResouceKitDemo for more information, or Examples.md

Use ResourceKit.
// Get ViewController
let viewController = ViewController.instanceFromStoryboard() // <- viewController is ViewController class.

// PerformSegue
performSegueOpen() // <- can write to use autocomplete.

// Nib
let cell = TableViewCell.Xib.view() // <- easy get instance.

Features

After installing ResourceKit into your project, and build it. ResourceKit will correct any missing/changed/added resources.

ResouceKit supports resource types.

Installation

CocoaPods is the recommended way of installation, as this avoids including any binary files into your project.

Cocoapods

  1. Add pod 'ResourceKit' to your Podfile and run pod install.
  2. 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.
  3. 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"
  4. 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

Manual

  1. Download a ResourceKit , unzip it and put it your source root directory.
  2. 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
  3. Drag the new Run Script phase above the Compile Sources phase, expand it and paste the following script: "$SRCROOT/ResourceKit"
  4. 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.

TODO:

  • Cocoapods support.
  • Images support.
  • LocaliazedString Support.
  • Adjust indent.
  • Collaboration SegueAddition.
  • User Chose Generate Resource Support.

Help:

Q.When want to use a Third party UI Library, how should it be done

A. You can write import CustomView to ResourceKit.generated.swift.
And build again, but It's left import CustomView!

License

ResourceKit is released under the MIT license. See LICENSE.txt for details.

More Resources
to explore the angular.

mail [email protected] to add your project or resources here 🔥.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory