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
- GH-34 Allow more flexible slicing by @henrik-dmg in #35
Full Changelog: 5.0.1...6.0.0