swift-package-resources

SwiftPM 5.8 Platforms @maximkrouk

Package with lightweight resources models for code generation. Originally created for 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)