https://github.com/capturecontext/swift-package-resources
https://github.com/capturecontext/swift-package-resources
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/capturecontext/swift-package-resources
- Owner: CaptureContext
- Created: 2021-09-29T11:45:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-13T20:04:26.000Z (over 2 years ago)
- Last Synced: 2025-01-19T00:08:39.632Z (about 1 year ago)
- Language: Swift
- Size: 7.81 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swift-package-resources
[](https://swift.org/download/)  [](https://twitter.com/capture_context)
Package with lightweight resources models for code generation. Originally created for [spmgen](https://github.com/capturecontext/spmgen).
## Products
### PackageResources
Product with the primary API, declares accessors for each resource type and some helpers. Unlike generated accessors, this module can be shared across multiple packages or targets without causing any ambiguity.
### PackageResourcesCore
Product with resource model declarations, target that contains resources might not need to access them, so you can depend just on this product to declare static factories for resources to use them later with `PackageResources` product.
Or you can use this product to create your own APIs.
Available declarations
- `PackageResources.Color` (`_ColorResource`)
- `PackageResources.Font` (`_FontResource`)
- `PackageResources.Image` (`_ImageResource`)
- `PackageResources.Nib` (`_NibResource`)
- `PackageResources.Storyboard` (`_StoryboardResource`)
- `PackageResources.SCNScene` (`_SCNSceneResource`)