🍺 BREW Explorer

← all formulae

rswift

brew install rswift v7.8.0 MIT

Get strong typed, autocompleted resources like images, fonts and segues

770
30-day installs · #1445
2.7k
90-day · #1414
11.5k
365-day · #1348
9.6k
★ GitHub stars · updated 1y ago

GitHub topics

autocompletion code-generator ios resources swift tvos watchos xcode

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Get strong typed, autocompleted resources like images, fonts and segues",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:41:29+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "rswift",
  "github_default_branch": "main",
  "github_last_commit_at": "2025-04-01T13:18:36Z",
  "github_readme_excerpt": "# R.swift [![Version](https://img.shields.io/cocoapods/v/R.swift.svg?style=flat)](https://cocoapods.org/pods/R.swift) [![License](https://img.shields.io/cocoapods/l/R.swift.svg?style=flat)](License) ![Platform](https://img.shields.io/cocoapods/p/R.swift.svg?style=flat)\n\n_Get strong typed, autocompleted resources like images, fonts and segues in Swift projects_\n\n## Why use this?\n\nIt makes your code that uses resources:\n- **Fully typed**, less casting and guessing what a method will return\n- **Compile time checked**, no more incorrect strings that make your app crash at runtime\n- **Autocompleted**, never have to guess that image name again\n\nCurrently you type:\n```swift\nlet icon = UIImage(named: \"settings-icon\")\nlet font = UIFont(name: \"San Francisco\", size: 42)\nlet color = UIColor(named: \"indicator highlight\")\nlet viewController = CustomViewController(nibName: \"CustomView\", bundle: nil)\nlet string = String(format: NSLocalizedString(\"welcome.withName\", comment: \"\"), locale: NSLocale.current, \"Arthur Dent\")\n```\n\nWith R.swift it becomes:\n```swift\nlet icon = R.image.settingsIcon()\nlet font = R.font.sanFrancisco(size: 42)\nlet color = R.color.indicatorHighlight()\nlet viewController = CustomViewController(nib: R.nib.customView)\nlet string = R.string.localizable.welcomeWithName(\"Arthur Dent\")\n```\n\nCheck out [more examples](Documentation/Examples.md) or hear about [how Fabric.app uses R.swift](https://academy.realm.io/posts/slug-javi-soto-building-fabric-in-swift/#rswift-2956)!\n\n## Demo\n\n**Autocompleted images:**\n\n![Autocompleted images](Documentation/Images/DemoUseImage.gif)\n\n**Compiletime checked images:**\n\n![Compiletime checked images](Documentation/Images/DemoRenameImage.gif)\n\nThis is only the beginning, check out [more examples](Documentation/Examples.md)!\n\n## CocoaHeadsNL presentation\n\nMathijs Kadijk presented R.swift at the September 2016 CocoaHeadsNL meetup.\nTalking about the ideas behind R.swift and demonstrating how to move from plain stringly-typed iOS code to stati",
  "github_repo": "mac-cain13/R.swift",
  "github_stars": 9572,
  "github_topics": [
    "autocompletion",
    "code-generator",
    "ios",
    "resources",
    "swift",
    "tvos",
    "watchos",
    "xcode"
  ],
  "homepage": "https://github.com/mac-cain13/R.swift",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 770,
  "installs_365d": 11544,
  "installs_90d": 2713,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "rswift",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 1445,
  "rank_365d": 1348,
  "rank_90d": 1414,
  "raw_hash": "aaf3e0ff50908c4e",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/r/rswift.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "7.8.0",
  "versioned_formulae": [],
  "why_use_this": null
}