⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Converting images folder to Images.xcassets and corresponding swift code.

Notifications You must be signed in to change notification settings

iftech-engineering/AssetsCodeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AssetsCodeGenerator

Converting images folder to Images.xcassets and corresponding swift code. Image file names must end with scale, like [email protected].

Usage

  1. To generate Images.xcassets and code from given images folder, run:
swift GenerateAssetsAndCode.swift -i Images -assetsOutput Output/Images.xcassets -codeOutput Output
  1. Drag Images.xcassets and R.generated.swift to your project
  2. In your code:
let imageView = UIImageView(image: R.images.ic_jike)

About

Converting images folder to Images.xcassets and corresponding swift code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages