kutchie-pelaez / assets-generation-plugin

Image symbols generation plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

assets-generation-plugin

Image symbols generation plugin similar to Xcode 15 feature.

Currently there's no way to change access level for generated symbols - all of them will be internal. This plugin recreates generation logic with public accessor applied to each symbol.

Installation

Swift Package Manager

In package's dependencies:

dependencies: [
    .package(url: "https://github.com/kutchie-pelaez/assets-generation-plugin.git", from: "1.0.0")
]

In target's plugins:

plugins: [
    .plugin(name: "AssetsPlugin", package: "assets-generation-plugin")
]

Usage

Make sure "Provides Namespaces" is enabled for each folder:

let one = Assets.one
let two = Assets.FolderOne.two
let three = Assets.FolderOne.FolderTwo.three

License

AssetsPlugin is released under the MIT license. See LICENSE for details.

About

Image symbols generation plugin


Languages

Language:Swift 100.0%