All Versions
56
Latest Version
Avg Release Cycle
88 days
Latest Release
-

Changelog History
Page 2

  • v6.0.2 Changes

    October 07, 2018

    πŸ”„ Changes in other SwiftGen modules

    πŸ› Bug Fixes

    • Strings: rolled back the changes in #503, to ensure %% is correctly unescaped.
      David Jennes
      #542
    • Strings: generate the correct types for %c and %p.
      David Jennes
      #543
    • SPM/Mint: SwiftGen now provides correct version information, instead of "0.0".
      David Jennes
      #544
  • v6.0.1 Changes

    October 04, 2018

    πŸ”„ Changes in core dependencies of SwiftGen

    πŸ› Bug Fixes

    • IB: Fix missing import AppKit/import UIKit in some rare cases.
      David Jennes #515 #519
    • 🍎 IB: Fix issue with segues-swift4 template when compiled with Swift 4.2 on macOS.
      Olivier Halligon #515 #518
    • ⚑️ SPM/Mint: Update the Stencil version to 0.13.1.
      David Jennes #527
    • πŸ—„ Ensure the templates subcommand properly works with the deprecated storyboards subcommand.
      David Jennes #525 #530
    • πŸ”§ Ensure configuration file errors show as red in Xcode.
      Olivier Halligon #516 #533
    • πŸ“œ Strings: Ensure the parser correctly handles keys ending with a . and empty key components.
      David Jennes #528 #531

    Internal Changes

  • v6.0.0 Changes

    September 29, 2018

    πŸš€ ⚠️ This major version is a big milestone in which a lot of refactoring and cleaning has been done. Many features added over previous releases have been reworked and unified, while also preparing SwiftGen for future additions. This means that you'll need to adapt your configuration files (or command line invocations) and custom templates to work with this new major version.

    πŸ“š Read the SwiftGen 6.0 Migration Guide for a list of changes you'll need to apply.

    πŸ”„ Changes in other SwiftGen modules

    πŸ’₯ Breaking Changes

    • 🚚 Don't normalize string keys while parsing, let all transformation be done on template side. This makes the developer responsible to keep the language file organized, duplications won't be removed.
      Diego Chohfi
      #257
    • βœ‚ Remove Swift 2 support.
      David Jennes
      #420
    • 🚚 Renamed the storyboards command to ib, to better reflect it's purpose. An alias for storyboards still exists, but it will be removed at some point.
      David Jennes
      #423
    • 🍱 XCAssets: the generated templates won't namespace groups by default anymore, use the forceProvidesNamespaces flag to enable this behaviour again.
      jechris
      #453
    • 🍱 XCAssets: the templates won't generate any all-values accessors anymore by default. Use the allValues flag to enable this behaviour again. Note: this replaces the old noAllValues flag (with an inverse behaviour).
      David Jennes
      #480
    • 🍱 XCAssets: Dropped the deprecated allValues constant, use the type specific constants such as allColors, allDataItems and allImages. The default value of imageAlias has also been changed from Image to AssetImageTypeAlias, to be consistent with the other types.
      David Jennes
      #482
    • πŸ— Interface Builder: split up the storyboards template into 2 parts, one for scenes and one for segues.
      David Jennes
      #419

    πŸ†• New Features

    • βž• Add ability to list all custom fonts and register them using FontFamily.registerAllCustomFonts.
      Olivier Halligon
      #394
    • βž• Add support for Swift Package Manager and Mint.
      Yonas Kolb
      #411
    • πŸ‘• The swiftgen.yml config file now accepts multiple outputs for each command, allowing you to generate multiple outputs from the same files and content. This also means that the output parameter is now deprecated, in favour of the outputs parameter, and it may be removed in a future version of SwiftGen. Similarly, the paths parameter has been renamed to inputs for consistency. You can always use swiftgen config lint to validate your configuration file.
      David Jennes
      #424
      #510
    • πŸ‘• Use swiftlint:disable all in generated files to avoid interference with SwiftLint rules custom to the host project.
      Frederick Pietschmann
      David Jennes
      #409
      #506
    • 🍱 XCAssets: Added support for NSDataAssets.
      Oliver Jones
      #444
    • πŸ‘ Organised the generated code in sections for better readability, with all generated constants at the top of the file.
      David Jennes
      Olivier Halligon
      #456
      #481
    • βž• Added support for JSON, Plist and YAML files using the swiftgen json, swiftgen plist and swiftgen yaml commands. The parsed contexts and the generated files for each command have been kept quite similar, for easier switching between file formats.
      John T McIntosh
      Toshihiro Suzuki
      Peter Livesey
      David Jennes
      #379
      #359
      #288
      #188
      #493
      #504
    • ⚑️ Updated the playgrounds with the new json, plist and yaml commands, and updated the other pages to reflect the template changes.
      David Jennes
      #495
    • πŸ”§ We're deprecating the old --template CLI option in favor of --templateName, to better match the naming of the other options and the configuration file. The old --template option will remain until the next major version.
      David Jennes
      #509

    πŸ› Bug Fixes

    • πŸ›  Fix memory leak in generated code for Fonts.
      Olivier Halligon
      #394
    • πŸ— Interface Builder: ensure the templates handle GLKViewController, AVPlayerViewController and NSPageController correctly.
      David Jennes
      #404
      #414
    • πŸ— Interface Builder: ensure the parser can handle files with and without "trait variations".
      David Jennes
      #367
      #429
    • 🚚 Restrict SceneType and InitialSceneType to UIViewController when not targeting AppKit. When targeting AppKit, remove superfluous Any.
      Darron Schall
      #463
      #464
    • Fonts: disable a warning in generated font files for projects with conditional_returns_on_newlines SwiftLint rule enabled.
      Ryan Davies
      #436
      #465
    • πŸ— Interface Builder: the parser and templates now handle the "Inherit module from target" setting.
      David Jennes
      #435
      #485
    • πŸ“œ Strings: the parser now correctly handles formats such as % d and %#x.
      David Jennes
      #502
    • Strings: ensure strings without arguments are not processed using String(format:).
      David Jennes
      #503

    Internal Changes

  • v5.3.0 Changes

    May 16, 2018

    πŸ”„ Changes in core dependencies of SwiftGen

    πŸ†• New Features

    Internal Changes

    • 🚧 Merged the SwiftGenKit and templates repositories back into this repository for easier development and maintenance.
      David Jennes #356
  • v5.2.1 Changes

    October 24, 2017

    πŸ› Bug Fixes

    • πŸ›  Fix SwiftGen no longer working using CLI parameters (instead of config file).
      David Jennes #347
    • Errors now properly exit with a non-zero exit code.
      Olivier Halligon #348
    • πŸ–¨ swiftgen --help prints the full help back again (and not just the help of the default config run subcommand).
      Olivier Halligon #349
  • v5.2.0 Changes

    October 22, 2017

    πŸ”„ Changes in other SwiftGen modules

    πŸ†• New Features

    πŸ› Bug Fixes

  • v5.1.2 Changes

    September 25, 2017

    Internal Changes

  • v5.1.1 Changes

    August 21, 2017

    πŸ”„ Changes in core dependencies of SwiftGen

    πŸ› Bug Fixes

  • v5.1.0 Changes

    August 20, 2017

    πŸ”„ Changes in core dependencies of SwiftGen

    πŸ†• New Features

    • βž• Added Swift 4 templates. Use -t swift4 or whatever variant you want to use (see swiftgen templates list for the available names).
      David Jennes SwiftGen/templates/#67
    • 🍱 XCAssets: Added support for named colors. When using swiftgen xcassets the bundled templates will now also include colors found in the Asset Catalog in addition to the images.
      David Jennes SwiftGen/templates/#68
    • 0️⃣ Fonts: the path to fonts will now default to just the font filename, but you can disable this behaviour by enabling the preservePath parameter.
      David Jennes SwiftGen/templates/#71
    • Colors: new template that uses #colorLiterals.
      Use swiftgen colors -t literals-swift3 / swiftgen colors -t literals-swift4 to use them.
      David Jennes SwiftGen/templates/#72
  • v5.0.0 Changes

    πŸš€ ⚠️ This major version is a big milestone in which a lot of refactoring and cleaning has been done. Many features added over previous releases have been reworked and unified, while also preparing SwiftGen for future additions. This means that you'll need to adapt your command line invocations and custom templates to work with this new major version.

    πŸ“š Read the [SwiftGen 5.0 Migration Guide](Documentation/MigrationGuide.md#migrating-to-swiftgen-50) for a list of changes you'll need to apply.

    πŸ”„ Changes in core dependencies of SwiftGen

    πŸ’₯ Breaking Changes

    • βœ‚ Removed deprecated CLI options. Please consult the migration guide should you still use them.
      David Jennes #301
    • 0️⃣ Disable default value for named template option and ensure that there is a template option.
      Liquidsoul #283
    • 🚚 Templates are now grouped by parser on the filesystem. This is only important if you had custom templates in the Application Support directory. To migrate your templates, place them in a subfolder with the name of the parser, and remove the prefix of the template filename.
      David Jennes #304
    • 🍱 The images command has been renamed to xcassets to better reflect its functionality.
      Olivier Halligon #317

    Notable breaking changes from other SwiftGen repositories

    • πŸ“š Many deprecated templates have been removed (or merged), and others have been renamed to reflect new behaviours. Please check the [templates migration guide](Documentation/templates/MigrationGuide.md#deprecated-templates-in-20-swiftgen-50) for more information.
      David Jennes SwiftGen/templates#47
    • πŸ“š There have been some breaking changes in the generated code for storyboards. Please check the [templates migration guide](Documentation/templates/MigrationGuide.md#deprecated-templates-in-20-swiftgen-50) for more information, where we also provide a compatibility template.
      Olivier Halligon SwiftGen/templates#65
    • βœ‚ Removed deprecated template context variables, and restructured many others. Please check the [SwiftGenKit migration guide](Documentation/SwiftGenKit%20Contexts/MigrationGuide.md#swiftgenkit-20-swiftgen-50-migration-guide) for more information.
      David Jennes SwiftGen/SwiftGenKit#5
    • πŸ“š Some filters have been removed in favour of Stencil's built in versions, and other filters have been updated to accept parameters. Please consult the StencilSwiftKit migration guide for more information.
      David Jennes SwiftGen/StencilSwiftKit#5 SwiftGen/StencilSwiftKit#6

    πŸ†• New Features

    Internal Changes

    Notable internal changes from other SwiftGen repositories

    • πŸ”Š Switch back from actool to an internal parser to fix numerous issues with the former. This fixes issues a few people encountered when using asset catalogs that contained some of the less common set types.
      David Jennes #228 SwiftGen/SwiftGenKit#43