All Versions
Latest Version
Avg Release Cycle
32 days
Latest Release
1169 days ago

Changelog History
Page 5

  • v1.3.0 Changes

    ๐Ÿ†• New features:

    • R.file.*.path() and R.file.*.url() are now available

    ๐Ÿ›  Fixed issues:

    • ๐Ÿ›  It was possible to invoke segues that didnโ€™t match the source view controller, this is fixed now by restricting some types
    • ๐Ÿ‘Œ Support UICollectionReusableView as root view in a nib
  • v1.2.0 Changes

    ๐Ÿ†• New features:

    • ๐Ÿ‘ Unwind segues are now supported

    ๐Ÿ›  Fixed issues:

    • Avoid creation of empty validate methods
  • v1.1.1 Changes

    ๐Ÿ›  Fixed issues:

    • Validate methods could have invalid code in their body
    • Help exited with code 1, should be 0
    • Also; Improved compile time by 7 seconds with some small code changes
  • v1.1.0 Changes

    ๐Ÿ†• New features:

    • ๐Ÿ‘ Storyboard references are now supported

    ๐Ÿ›  Fixed issues:

    • Segues from views did crash R.swift
  • v1.0.2 Changes

    ๐Ÿ›  Fixed issues:

    • Validateable was not written out as Rswift.Validateable in all cases
  • v1.0.1 Changes

    ๐Ÿ›  Fixed issues:

    • Validatable collision, since it's quite a common name R.swift now states explicitly it means the one in the R.swift.Library
    • Imports where missing when the module was only used in the generated code in a inferred way
    • The code to call the _R.validate() function was always generated, it's now conditional and only generated when needed
  • v1.0.0 Changes

    ๐Ÿ’ฅ Breaking changes:

    • ๐Ÿš€ iOS 7 support is dropped, use R.swift 0.13 if you still have to support it.
    • ๐Ÿ‘€ Generated code now depends on the R.swift.Library, CocoaPods users don't need to do anything. Manual installation users need to include this library themselves, see the readme for instructions.
    • ๐Ÿ‘ In general; properties that created new stuff are now functions to represent better that they actually create a new instance.
      • R.image.settingsIcon changed to R.image.settingsIcon()
      • R.file.someJson changed to R.file.someJson()
      • R.storyboard.main.initialViewController changed to R.storyboard.main.initialViewController()
      • R.storyboard.main.someViewController changed to R.storyboard.main.someViewController()
    • In general; Where you needed to use .initialize() to get the instance, a shorter function is available now:
      • R.storyboard.main.initialize() changed to R.storyboard.main()
      • R.nib.someView.initiate() changed to R.nib.someView()
    • Nib root view loading changed from R.nib.someView.firstView(nil, options: nil) to R.nib.someView.firstView(owner: nil)
    • Typed segue syntax changed from segue.typedInfoWithIdentifier(R.segue.someViewController.someSegue) to R.segue.someViewController.someSegue(segue: segue)
    • โš™ Runtime validation changed:
      • R.validate() now throws errors it encounters
      • R.assertValid() asserts on errors and only performs action in a debug/non-optimized build
      • For regular use cases using R.assertValid() is recommended

    ๐Ÿ›  Major features and fixes:

    • Writing extensions for R.swift generated code is possible by using the types from the new R.swift.Library
    • ๐Ÿ‘Œ Improved importstatements, R.swift will detect modules that you use and import them in the generated file.
    • ๐Ÿ‘Œ Improved error reporting, on incorrect calls to the rswift binary as well as during project parsing
    • UITraitCollection can be specified when loading images
    • The String based path as well as the NSURL of a file can now easily be accessed thanks to an overloaded function
    • Constructors are available for all types to provide more flexibility and late initialization (eg. passing a ImageResource around and only creating the image with the special UIImage constructor when you need it)
    • Information about resources is now accessible, a few examples:
      • returns the name of the image
      • R.nib.myCell.identifier returns the reuse identifier string of the cell
      • returns the name of the storyboard
  • v0.13 Changes

    ๐Ÿ†• New typed segues

    • iOS 7 compatible image loading
    • โฌ†๏ธ Upgrade notice:
    • โฌ†๏ธ The new R.segue.* structure is a breaking change, upgrading will give you compile errors because the structure has changed.

    Old: R.segue.mySegue ๐Ÿ†• New: R.segue.myViewController.mySegue

    ๐Ÿ“š This enables you to reuse segue identifier names between different source view controllers. Segues now also contain type information. See the documentation on how you can leverage from that.

  • v0.12 Changes

    ๐Ÿ›  Fixes use of a R.generated.swift-file in a different than the main bundle:

    • ๐Ÿฑ Loading of assets now use a specific bundle instead of the main bundle
    • Mentioning of the bundle name in types is now only done when it's not the bundle the R-file is generated for
  • v0.11 Changes

    • ๐Ÿ›  Correct @2x/3x loading for non-PNG files and device specific suffixes like ~ipad and ~iphone
    • ๐Ÿ— Use correct product name during build (Thanks @kylejm)
    • ๐Ÿ‘Œ Support tvOS in podspec (Thanks @tomlokhorst for testing basic tvOS support)
    • ๐Ÿ‘ Better cleanup of invalid characters in filenames when converting to variable names, also preserve capitals for better readability