Skip to content

Instantly share code, notes, and snippets.

@ksmandersen
Last active June 21, 2016 18:43
Show Gist options
  • Save ksmandersen/f288d8a79f31b0a398aaba8fba48454d to your computer and use it in GitHub Desktop.
Save ksmandersen/f288d8a79f31b0a398aaba8fba48454d to your computer and use it in GitHub Desktop.
// This is a generated file, do not edit!
// Generated by R.swift, see https://github.com/mac-cain13/R.swift
import Foundation
import Rswift
import UIKit
/// This `R` struct is code generated, and contains references to static resources.
struct R {
/// This `R.color` struct is generated, and contains static references to 0 color palettes.
struct color {
private init() {}
}
/// This `R.file` struct is generated, and contains static references to 3 files.
struct file {
/// Resource file `Lato-Black.ttf`.
static let latoBlackTtf = FileResource(bundle: _R.hostingBundle, name: "Lato-Black", pathExtension: "ttf")
/// `bundle.URLForResource("Lato-Black", withExtension: "ttf")`
static func latoBlackTtf(_: Void) -> NSURL? {
let fileResource = R.file.latoBlackTtf
return fileResource.bundle.URLForResource(fileResource)
}
/// ...
private init() {}
}
/// This `R.font` struct is generated, and contains static references to 3 fonts.
struct font {
/// Font `Lato-Black`.
static let latoBlack = FontResource(fontName: "Lato-Black")
/// `UIFont(name: "Lato-Black", size: ...)`
static func latoBlack(size size: CGFloat) -> UIFont? {
return UIFont(resource: latoBlack, size: size)
}
private init() {}
}
/// This `R.image` struct is generated, and contains static references to 3 images.
struct image {
/// Image `LaunchImage`.
static let launchImage = ImageResource(bundle: _R.hostingBundle, name: "LaunchImage")
/// `UIImage(named: "LaunchImage", bundle: ..., traitCollection: ...)`
static func launchImage(compatibleWithTraitCollection traitCollection: UITraitCollection? = nil) -> UIImage? {
return UIImage(resource: R.image.launchImage, compatibleWithTraitCollection: traitCollection)
}
/// ...
private init() {}
}
/// This `R.nib` struct is generated, and contains static references to 0 nibs.
struct nib {
private init() {}
}
/// This `R.reuseIdentifier` struct is generated, and contains static references to 0 reuse identifiers.
struct reuseIdentifier {
private init() {}
}
/// This `R.segue` struct is generated, and contains static references to 0 view controllers.
struct segue {
private init() {}
}
/// This `R.storyboard` struct is generated, and contains static references to 0 storyboards.
struct storyboard {
private init() {}
}
/// This `R.string` struct is generated, and contains static references to 1 localization tables.
struct string {
/// This `R.string.localizable` struct is generated, and contains static references to 36 localization keys.
struct localizable {
/// Base translation: Log out
///
/// Locales: Base
static let accountLogOut = StringResource(key: "AccountLogOut", tableName: "Localizable", locales: ["Base"])
/// Base translation: Need help? Visit
/// ...
private init() {}
}
private init() {}
}
private init() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment