Created
April 24, 2019 20:17
-
-
Save bclymer/fa19c0b7260cc561b8dfce2b0e26385a to your computer and use it in GitHub Desktop.
R.swift Objective-C Support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Compatibility layer so resources can be used in ObjC | |
// | |
@objcMembers | |
@available(swift, obsoleted: 1.0, message: "Use R. instead") | |
public class RObjc: Foundation.NSObject { | |
// R.color.keyboardFocusIndicatorColor() | |
@available(tvOS 11.0, *) | |
@available(iOS 11.0, *) | |
static func color_keyboardFocusIndicatorColor() -> UIKit.UIColor? { | |
return R.color.keyboardFocusIndicatorColor() | |
} | |
// R.color.keyboardFocusIndicatorColor(compatibleWith: traitCollection) | |
@available(tvOS 11.0, *) | |
@available(iOS 11.0, *) | |
static func color_keyboardFocusIndicatorColor(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIColor? { | |
return R.color.keyboardFocusIndicatorColor(compatibleWith: traitCollection) | |
} | |
// R.color.notDupe() | |
@available(tvOS 11.0, *) | |
@available(iOS 11.0, *) | |
static func color_notDupe() -> UIKit.UIColor? { | |
return R.color.notDupe() | |
} | |
// R.color.notDupe(compatibleWith: traitCollection) | |
@available(tvOS 11.0, *) | |
@available(iOS 11.0, *) | |
static func color_notDupe(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIColor? { | |
return R.color.notDupe(compatibleWith: traitCollection) | |
} | |
// R.color.slightlyTransparant() | |
@available(tvOS 11.0, *) | |
@available(iOS 11.0, *) | |
static func color_slightlyTransparant() -> UIKit.UIColor? { | |
return R.color.slightlyTransparant() | |
} | |
// R.color.slightlyTransparant(compatibleWith: traitCollection) | |
@available(tvOS 11.0, *) | |
@available(iOS 11.0, *) | |
static func color_slightlyTransparant(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIColor? { | |
return R.color.slightlyTransparant(compatibleWith: traitCollection) | |
} | |
// R.color.folder.notDupe() | |
@available(tvOS 11.0, *) | |
@available(iOS 11.0, *) | |
static func color_folder_notDupe() -> UIKit.UIColor? { | |
return R.color.folder.notDupe() | |
} | |
// R.color.folder.notDupe(compatibleWith: traitCollection) | |
@available(tvOS 11.0, *) | |
@available(iOS 11.0, *) | |
static func color_folder_notDupe(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIColor? { | |
return R.color.folder.notDupe(compatibleWith: traitCollection) | |
} | |
// R.file.colors2xJpg() | |
static func file_colors2xJpg() -> Foundation.URL? { | |
return R.file.colors2xJpg() | |
} | |
// R.file.colors3xJpg() | |
static func file_colors3xJpg() -> Foundation.URL? { | |
return R.file.colors3xJpg() | |
} | |
// R.file.colorsIpad2xJpg() | |
static func file_colorsIpad2xJpg() -> Foundation.URL? { | |
return R.file.colorsIpad2xJpg() | |
} | |
// R.file.colorsJpg() | |
static func file_colorsJpg() -> Foundation.URL? { | |
return R.file.colorsJpg() | |
} | |
// R.file.column() | |
static func file_column() -> Foundation.URL? { | |
return R.file.column() | |
} | |
// R.file.explicitIncludeIgnoremePng() | |
static func file_explicitIncludeIgnoremePng() -> Foundation.URL? { | |
return R.file.explicitIncludeIgnoremePng() | |
} | |
// R.file.helloTxt() | |
static func file_helloTxt() -> Foundation.URL? { | |
return R.file.helloTxt() | |
} | |
// R.file.keepDontIgnoremePng() | |
static func file_keepDontIgnoremePng() -> Foundation.URL? { | |
return R.file.keepDontIgnoremePng() | |
} | |
// R.file.settingsBundle() | |
static func file_settingsBundle() -> Foundation.URL? { | |
return R.file.settingsBundle() | |
} | |
// R.file.someJson() | |
static func file_someJson() -> Foundation.URL? { | |
return R.file.someJson() | |
} | |
// R.file.theAppIconPng() | |
static func file_theAppIconPng() -> Foundation.URL? { | |
return R.file.theAppIconPng() | |
} | |
// R.file.userWhite2xPng() | |
static func file_userWhite2xPng() -> Foundation.URL? { | |
return R.file.userWhite2xPng() | |
} | |
// R.file.userWhite3xPng() | |
static func file_userWhite3xPng() -> Foundation.URL? { | |
return R.file.userWhite3xPng() | |
} | |
// R.file.userWhitePng() | |
static func file_userWhitePng() -> Foundation.URL? { | |
return R.file.userWhitePng() | |
} | |
// R.font.averiaLibreBold(size: size) | |
static func font_averiaLibreBold(size: CGFloat) -> UIKit.UIFont? { | |
return R.font.averiaLibreBold(size: size) | |
} | |
// R.font.averiaLibreBoldItalic(size: size) | |
static func font_averiaLibreBoldItalic(size: CGFloat) -> UIKit.UIFont? { | |
return R.font.averiaLibreBoldItalic(size: size) | |
} | |
// R.font.averiaLibreLight(size: size) | |
static func font_averiaLibreLight(size: CGFloat) -> UIKit.UIFont? { | |
return R.font.averiaLibreLight(size: size) | |
} | |
// R.font.averiaLibreRegular(size: size) | |
static func font_averiaLibreRegular(size: CGFloat) -> UIKit.UIFont? { | |
return R.font.averiaLibreRegular(size: size) | |
} | |
// R.font.goudyBookletter1911(size: size) | |
static func font_goudyBookletter1911(size: CGFloat) -> UIKit.UIFont? { | |
return R.font.goudyBookletter1911(size: size) | |
} | |
// R.image.colorsJpg() | |
static func image_colorsJpg() -> UIKit.UIImage? { | |
return R.image.colorsJpg() | |
} | |
// R.image.colorsJpg(compatibleWith: traitCollection) | |
static func image_colorsJpg(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.colorsJpg(compatibleWith: traitCollection) | |
} | |
// R.image.conflicting() | |
static func image_conflicting() -> UIKit.UIImage? { | |
return R.image.conflicting() | |
} | |
// R.image.conflicting(compatibleWith: traitCollection) | |
static func image_conflicting(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.conflicting(compatibleWith: traitCollection) | |
} | |
// R.image.eerste() | |
static func image_eerste() -> UIKit.UIImage? { | |
return R.image.eerste() | |
} | |
// R.image.eerste(compatibleWith: traitCollection) | |
static func image_eerste(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.eerste(compatibleWith: traitCollection) | |
} | |
// R.image.explicitIncludeIgnoreme() | |
static func image_explicitIncludeIgnoreme() -> UIKit.UIImage? { | |
return R.image.explicitIncludeIgnoreme() | |
} | |
// R.image.explicitIncludeIgnoreme(compatibleWith: traitCollection) | |
static func image_explicitIncludeIgnoreme(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.explicitIncludeIgnoreme(compatibleWith: traitCollection) | |
} | |
// R.image.first() | |
static func image_first() -> UIKit.UIImage? { | |
return R.image.first() | |
} | |
// R.image.first(compatibleWith: traitCollection) | |
static func image_first(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.first(compatibleWith: traitCollection) | |
} | |
// R.image.firstNested() | |
static func image_firstNested() -> UIKit.UIImage? { | |
return R.image.firstNested() | |
} | |
// R.image.firstNested(compatibleWith: traitCollection) | |
static func image_firstNested(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.firstNested(compatibleWith: traitCollection) | |
} | |
// R.image.keepDontIgnoreme() | |
static func image_keepDontIgnoreme() -> UIKit.UIImage? { | |
return R.image.keepDontIgnoreme() | |
} | |
// R.image.keepDontIgnoreme(compatibleWith: traitCollection) | |
static func image_keepDontIgnoreme(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.keepDontIgnoreme(compatibleWith: traitCollection) | |
} | |
// R.image.secondNested() | |
static func image_secondNested() -> UIKit.UIImage? { | |
return R.image.secondNested() | |
} | |
// R.image.secondNested(compatibleWith: traitCollection) | |
static func image_secondNested(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.secondNested(compatibleWith: traitCollection) | |
} | |
// R.image.userWhite() | |
static func image_userWhite() -> UIKit.UIImage? { | |
return R.image.userWhite() | |
} | |
// R.image.userWhite(compatibleWith: traitCollection) | |
static func image_userWhite(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.userWhite(compatibleWith: traitCollection) | |
} | |
// R.image.namespace.first() | |
static func image_namespace_first() -> UIKit.UIImage? { | |
return R.image.namespace.first() | |
} | |
// R.image.namespace.first(compatibleWith: traitCollection) | |
static func image_namespace_first(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.namespace.first(compatibleWith: traitCollection) | |
} | |
// R.image.namespace.third() | |
static func image_namespace_third() -> UIKit.UIImage? { | |
return R.image.namespace.third() | |
} | |
// R.image.namespace.third(compatibleWith: traitCollection) | |
static func image_namespace_third(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.namespace.third(compatibleWith: traitCollection) | |
} | |
// R.image.namespace.inner.namespace.first() | |
static func image_namespace_inner_namespace_first() -> UIKit.UIImage? { | |
return R.image.namespace.inner.namespace.first() | |
} | |
// R.image.namespace.inner.namespace.first(compatibleWith: traitCollection) | |
static func image_namespace_inner_namespace_first(compatibleWith traitCollection: UIKit.UITraitCollection?) -> UIKit.UIImage? { | |
return R.image.namespace.inner.namespace.first(compatibleWith: traitCollection) | |
} | |
// R.nib.aDuplicateCellView(owner: ownerOrNil) | |
static func nib_aDuplicateCellView(owner ownerOrNil: AnyObject?) -> UIKit.UITableViewCell? { | |
return R.nib.aDuplicateCellView(owner: ownerOrNil) | |
} | |
// R.nib.aDuplicateCellView(owner: ownerOrNil, options: optionsOrNil) | |
static func nib_aDuplicateCellView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]?) -> UIKit.UITableViewCell? { | |
return R.nib.aDuplicateCellView(owner: ownerOrNil, options: optionsOrNil) | |
} | |
// R.nib.cellCollectionView(owner: ownerOrNil) | |
static func nib_cellCollectionView(owner ownerOrNil: AnyObject?) -> UIKit.UICollectionViewCell? { | |
return R.nib.cellCollectionView(owner: ownerOrNil) | |
} | |
// R.nib.cellCollectionView(owner: ownerOrNil, options: optionsOrNil) | |
static func nib_cellCollectionView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]?) -> UIKit.UICollectionViewCell? { | |
return R.nib.cellCollectionView(owner: ownerOrNil, options: optionsOrNil) | |
} | |
// R.nib.cellView(owner: ownerOrNil) | |
static func nib_cellView(owner ownerOrNil: AnyObject?) -> UIKit.UITableViewCell? { | |
return R.nib.cellView(owner: ownerOrNil) | |
} | |
// R.nib.cellView(owner: ownerOrNil, options: optionsOrNil) | |
static func nib_cellView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]?) -> UIKit.UITableViewCell? { | |
return R.nib.cellView(owner: ownerOrNil, options: optionsOrNil) | |
} | |
// R.nib.duplicateCellView(owner: ownerOrNil) | |
static func nib_duplicateCellView(owner ownerOrNil: AnyObject?) -> UIKit.UITableViewCell? { | |
return R.nib.duplicateCellView(owner: ownerOrNil) | |
} | |
// R.nib.duplicateCellView(owner: ownerOrNil, options: optionsOrNil) | |
static func nib_duplicateCellView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]?) -> UIKit.UITableViewCell? { | |
return R.nib.duplicateCellView(owner: ownerOrNil, options: optionsOrNil) | |
} | |
// R.nib.launchScreen(owner: ownerOrNil) | |
static func nib_launchScreen(owner ownerOrNil: AnyObject?) -> UIKit.UIView? { | |
return R.nib.launchScreen(owner: ownerOrNil) | |
} | |
// R.nib.launchScreen(owner: ownerOrNil, options: optionsOrNil) | |
static func nib_launchScreen(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]?) -> UIKit.UIView? { | |
return R.nib.launchScreen(owner: ownerOrNil, options: optionsOrNil) | |
} | |
// R.nib.myView(owner: ownerOrNil) | |
static func nib_myView(owner ownerOrNil: AnyObject?) -> UIKit.UIView? { | |
return R.nib.myView(owner: ownerOrNil) | |
} | |
// R.nib.myView(owner: ownerOrNil, options: optionsOrNil) | |
static func nib_myView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]?) -> UIKit.UIView? { | |
return R.nib.myView(owner: ownerOrNil, options: optionsOrNil) | |
} | |
// R.nib.relativeToProject(owner: ownerOrNil) | |
static func nib_relativeToProject(owner ownerOrNil: AnyObject?) -> UIKit.UIView? { | |
return R.nib.relativeToProject(owner: ownerOrNil) | |
} | |
// R.nib.relativeToProject(owner: ownerOrNil, options: optionsOrNil) | |
static func nib_relativeToProject(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]?) -> UIKit.UIView? { | |
return R.nib.relativeToProject(owner: ownerOrNil, options: optionsOrNil) | |
} | |
// R.nib.supplementaryElement(owner: ownerOrNil) | |
static func nib_supplementaryElement(owner ownerOrNil: AnyObject?) -> UIKit.UICollectionReusableView? { | |
return R.nib.supplementaryElement(owner: ownerOrNil) | |
} | |
// R.nib.supplementaryElement(owner: ownerOrNil, options: optionsOrNil) | |
static func nib_supplementaryElement(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]?) -> UIKit.UICollectionReusableView? { | |
return R.nib.supplementaryElement(owner: ownerOrNil, options: optionsOrNil) | |
} | |
// R.nib.whitespaceReuseIdentifer(owner: ownerOrNil) | |
static func nib_whitespaceReuseIdentifer(owner ownerOrNil: AnyObject?) -> UIKit.UITableViewCell? { | |
return R.nib.whitespaceReuseIdentifer(owner: ownerOrNil) | |
} | |
// R.nib.whitespaceReuseIdentifer(owner: ownerOrNil, options: optionsOrNil) | |
static func nib_whitespaceReuseIdentifer(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]?) -> UIKit.UITableViewCell? { | |
return R.nib.whitespaceReuseIdentifer(owner: ownerOrNil, options: optionsOrNil) | |
} | |
// R.nib.xibWithViewController(owner: ownerOrNil) | |
static func nib_xibWithViewController(owner ownerOrNil: AnyObject?) -> FirstViewController? { | |
return R.nib.xibWithViewController(owner: ownerOrNil) | |
} | |
// R.nib.xibWithViewController(owner: ownerOrNil, options: optionsOrNil) | |
static func nib_xibWithViewController(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]?) -> FirstViewController? { | |
return R.nib.xibWithViewController(owner: ownerOrNil, options: optionsOrNil) | |
} | |
// R.storyboard.main() | |
static func storyboard_main() -> UIKit.UIStoryboard { | |
return R.storyboard.main() | |
} | |
// R.storyboard.references() | |
static func storyboard_references() -> UIKit.UIStoryboard { | |
return R.storyboard.references() | |
} | |
// R.storyboard.secondary() | |
static func storyboard_secondary() -> UIKit.UIStoryboard { | |
return R.storyboard.secondary() | |
} | |
// R.storyboard.specials() | |
static func storyboard_specials() -> UIKit.UIStoryboard { | |
return R.storyboard.specials() | |
} | |
// R.string.generic.correctAlpha(first: value1) | |
static func string_generic_correctAlpha(first value1: Int) -> String { | |
return R.string.generic.correctAlpha(first: value1) | |
} | |
// R.string.generic.correctBeta(first: value1, second: value2) | |
static func string_generic_correctBeta(first value1: Int, second value2: Int) -> String { | |
return R.string.generic.correctBeta(first: value1, second: value2) | |
} | |
// R.string.generic.correctDelta(first: value1, second: value2) | |
static func string_generic_correctDelta(first value1: Int, second value2: Int) -> String { | |
return R.string.generic.correctDelta(first: value1, second: value2) | |
} | |
// R.string.generic.correctEpsilon(first: value1, second: value2) | |
static func string_generic_correctEpsilon(first value1: Int, second value2: Int) -> String { | |
return R.string.generic.correctEpsilon(first: value1, second: value2) | |
} | |
// R.string.generic.correctEta(value1, second: value2, value3) | |
static func string_generic_correctEta(_ value1: String, second value2: Int, _ value3: Int) -> String { | |
return R.string.generic.correctEta(value1, second: value2, value3) | |
} | |
// R.string.generic.correctGamma(first: value1, second: value2) | |
static func string_generic_correctGamma(first value1: Int, second value2: Int) -> String { | |
return R.string.generic.correctGamma(first: value1, second: value2) | |
} | |
// R.string.generic.correctTheta(first: value1, second: value2, third: value3) | |
static func string_generic_correctTheta(first value1: Int, second value2: Int, third value3: Int) -> String { | |
return R.string.generic.correctTheta(first: value1, second: value2, third: value3) | |
} | |
// R.string.generic.correctZeta(value1, second: value2) | |
static func string_generic_correctZeta(_ value1: String, second value2: Int) -> String { | |
return R.string.generic.correctZeta(value1, second: value2) | |
} | |
// R.string.generic.loremipsum() | |
static func string_generic_loremipsum() -> String { | |
return R.string.generic.loremipsum() | |
} | |
// R.string.generic.precision1(value1) | |
static func string_generic_precision1(_ value1: Double) -> String { | |
return R.string.generic.precision1(value1) | |
} | |
// R.string.generic.precision2(value1) | |
static func string_generic_precision2(_ value1: Double) -> String { | |
return R.string.generic.precision2(value1) | |
} | |
// R.string.generic.precision3(value1) | |
static func string_generic_precision3(_ value1: Double) -> String { | |
return R.string.generic.precision3(value1) | |
} | |
// R.string.generic.precision4(value1) | |
static func string_generic_precision4(_ value1: Double) -> String { | |
return R.string.generic.precision4(value1) | |
} | |
// R.string.localizable.japaneseOnly() | |
static func string_localizable_japaneseOnly() -> String { | |
return R.string.localizable.japaneseOnly() | |
} | |
// R.string.localizable.one() | |
static func string_localizable_one() -> String { | |
return R.string.localizable.one() | |
} | |
// R.string.localizable.quote(value1) | |
static func string_localizable_quote(_ value1: Int) -> String { | |
return R.string.localizable.quote(value1) | |
} | |
// R.string.localizable.two() | |
static func string_localizable_two() -> String { | |
return R.string.localizable.two() | |
} | |
// R.string.settings.copyProgress(value1, value2, value3) | |
static func string_settings_copyProgress(_ value1: Int, _ value2: Int, _ value3: Double) -> String { | |
return R.string.settings.copyProgress(value1, value2, value3) | |
} | |
// R.string.settings.formatSpecifiers1(value1, value2, value3) | |
static func string_settings_formatSpecifiers1(_ value1: Int, _ value2: Int, _ value3: String) -> String { | |
return R.string.settings.formatSpecifiers1(value1, value2, value3) | |
} | |
// R.string.settings.formatSpecifiers3(value1, value2, value3) | |
static func string_settings_formatSpecifiers3(_ value1: Int, _ value2: Int, _ value3: String) -> String { | |
return R.string.settings.formatSpecifiers3(value1, value2, value3) | |
} | |
// R.string.settings.formatSpecifiers4(value1, value2, value3) | |
static func string_settings_formatSpecifiers4(_ value1: Int, _ value2: Int, _ value3: String) -> String { | |
return R.string.settings.formatSpecifiers4(value1, value2, value3) | |
} | |
// R.string.settings.incorrectInDutch(first: value1) | |
static func string_settings_incorrectInDutch(first value1: Int) -> String { | |
return R.string.settings.incorrectInDutch(first: value1) | |
} | |
// R.string.settings.multilineKeyWeird() | |
static func string_settings_multilineKeyWeird() -> String { | |
return R.string.settings.multilineKeyWeird() | |
} | |
// R.string.settings.notTranslated() | |
static func string_settings_notTranslated() -> String { | |
return R.string.settings.notTranslated() | |
} | |
// R.string.settings.scopeLuOutOfLuRuns(lu_completed_runs: value1, lu_total_runs: value2) | |
static func string_settings_scopeLuOutOfLuRuns(lu_completed_runs value1: UInt, lu_total_runs value2: UInt) -> String { | |
return R.string.settings.scopeLuOutOfLuRuns(lu_completed_runs: value1, lu_total_runs: value2) | |
} | |
// R.string.settings.title() | |
static func string_settings_title() -> String { | |
return R.string.settings.title() | |
} | |
// R.string.settings.weNeedACoupleThingsBeforeYouGetStarted() | |
static func string_settings_weNeedACoupleThingsBeforeYouGetStarted() -> String { | |
return R.string.settings.weNeedACoupleThingsBeforeYouGetStarted() | |
} | |
fileprivate override init() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment