Latest 1.3.0
Homepage https://github.com/e-sites/Radon
License MIT
Platforms ios 8.0, osx 10.10, requires ARC
Authors

Radon

Radon is part of the E-sites iOS Suite.


A lightweight framework to schedule and cancel local notifications.

forthebadge forthebadge

Platform
CocoaPods Compatible
Quality
Travis-ci

Inspired by R.swift by Mathijs Kadijk. 👏
The difference between R.swift and this one, is that it only looks for images and has a special --watch parameter.

Installation

Cocoapods

Podfile:

pod 'Radon'

And then

pod install

Manual

Just download the radon binary and put it anywhere you like.

Generating

Just run:

$ Pods/Radon/bin/radon

With the following options:

Usage: Pods/Radon/bin/radon [options]
  -f, --folder:
      The folder to scan
  -o, --output:
      The folder to write the Radon.swift files to
  -w, --watch:
      Automatically watch the 'folder'
  -r, --remove_foldernames:
      Remove the name of the folder from the filename

With the --watch option the cli app wil automatically scan the folder and generate the Radon files when any changes have been made inside that folder.

So for instance:

$ Pods/Radon/bin/radon --folder ./Resources/ --output ./Classes/Generated/ --watch --remove_foldernames

This will generate two files:

  • Radon.swift
  • Radon+images.swift

You can use these two files in your project.

See the example project for more information.

Usage

let image = Radon.images.assets.icons.ironMan

let imageView = UIImageView(image: image)
imageView.frame = CGRect(x: 50, y: 50, width: 100, height: 100)
self.view.addSubview(imageView)

For your convenience you can also use the shorthand R.swift notation.

typealias R = Radon

Latest podspec

{
    "name": "Radon",
    "version": "1.3.0",
    "platforms": {
        "ios": "8.0",
        "osx": "10.10"
    },
    "summary": "A lightweight commandline tool to automatically generate strong-typed images",
    "authors": {
        "Bas van Kuijck": "[email protected]"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/e-sites/Radon",
    "source": {
        "git": "https://github.com/e-sites/Radon.git",
        "tag": "1.3.0"
    },
    "preserve_paths": "bin/radon",
    "source_files": "bin/*.h",
    "requires_arc": true
}

Pin It on Pinterest

Share This