Skip to content
forked from ryangomba/slicer

Automatically export Sketch slices into an Xcode .xcassets bundle

Notifications You must be signed in to change notification settings

water-su/Slicer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slicer

Automatically export Sketch slices into an Xcode .xcassets bundle

  • normal slices will export to xxx.imageset
  • slices named as AppIcon-60 will export to AppIcon.appiconset and generate crosponding Contents.json file with
{
"idiom": "iphone",
"scale": "2x",
"filename": "AppIcon-60@2x.png",
"size": "60x60"
},

usage

python "$PROJECT_DIR/slice.py" "$PROJECT_DIR/Design/Slicer.sketch" "$PROJECT_DIR/Support/Images.xcassets"
  • remember to put the run script before Copy Bundle Resources
  • set appicon slice name like AppIcon-60 in sketch file to handle AppIcons
  • test first before apply

About

Automatically export Sketch slices into an Xcode .xcassets bundle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 75.2%
  • Objective-C 24.8%