Skip to content

More flexible slicing

Latest
Compare
Choose a tag to compare
@henrik-dmg henrik-dmg released this 26 Mar 13:50
· 2 commits to main since this release
6.0.0
88c7bb9

New slicing mechanism

This version introduces breaking changes to the parsing of configuration files, so we bumped to a new major version.

From now on it will be your own responsibility to make sure your template images have the correct width so that the output slices are accepted by App Store Connect or the likes. SwiftFrame now expects numberOfSlices key in each object of the deviceData array which defines how many slices the template file will be rendered into. It automatically calculates the slice size based on this value, the size of the template file and the gap width if any.

Migration Guide

Most configuration files can be easily migrated by simply adding the new key numberOfSlices to each deviceData object with the value you expect.

What's Changed

Full Changelog: 5.0.1...6.0.0