Releases: mac-cain13/R.swift
Releases · mac-cain13/R.swift
2.0.0
Fixed issue:
- Use new version of R.swift.Library to avoid Swift 2.2 warnings
- This version is not compatible with Swift 2.1 and therefore a breaking change, use 1.4.2 if you need Swift 2.1 compatibility.
1.4.1
Note: Do not use this version, use version 2.0.0 or 1.4.2 instead.
Fixed issue:
- Use new version of R.swift.Library to avoid Swift 2.2 warnings
1.4.2
Fixed issue:
- Make this version compatible with Swift 2.1
- This release is exactly the same version as 1.4.0
1.4.0
This release mainly contains fixes and features contributed by users. Many many thanks for everyone who reported an issue or proposed a pull request, it is highly appreciated!
New features:
- Added support for CLR color lists (@tomlokhorst)
- SwiftDoc comments are generated in the
R.generated.swift
file (@tomlokhorst) - R.swift is made available on Homebrew (maintained by @tomasharkema)
- Synthesizing let accessors for storyboard identifiers (@JaviSoto)
- New
NSData(resource: R.file.someFile)
constructor is now available (@tomlokhorst)
Fixed issues:
- Breaking:
R.file.someFile() as String
is removed to prevent ambiguity errors, useR.file.someFile.path()
instead (@tomlokhorst) - Generated variable/function names will never be empty anymore (@tomlokhorst)
- If the first view in a nib is a standard Apple Interface Builder class it will now typecast correctly instead of falling back to
UIView
- NSBundle now falls correctly back on the main bundle, this was documented as such but did not always happen
- Swift keyword list updated to avoid generation of invalid variable/function names
1.3.0
New features:
R.file.*.path()
andR.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
1.2.0
New features:
- Unwind segues are now supported
Fixed issues:
- Avoid creation of empty validate methods
1.1.1
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
1.1.0
New features:
- Storyboard references are now supported
Fixed issues:
- Segues from views did crash R.swift
1.0.2
Fixed issues:
Validateable
was not written out asRswift.Validateable
in all cases
1.0.1
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