SkillAgentSearch skills...

AssetsCodeGenerator

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

Install / Use

/learn @iftech-engineering/AssetsCodeGenerator
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

AssetsCodeGenerator

Converting images folder to Images.xcassets and corresponding swift code. Image file names must end with scale, like ic_jike@2x.png.

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)

Related Skills

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated4y ago
Forks0

Languages

Swift

Security Score

60/100

Audited on Oct 15, 2021

No findings