Since the feedback process on the 2018 "Package Resources" proposal draft has already started here, let me mention two requirements I'd expect from resources support in SwiftPM which I both don't see covered by the draft:
- allow type-safe access with resource availability checks by the compiler, preventing dynamic strings (removing the need for tools like SwiftGen entirely)
- allow folder-based types for different contexts, e.g. to make initializing different
UIImage
resources from a .xcassets folder or aString
from a directory containing .lproj folders possible
I've actually just pitched an alternative (incomplete) proposal draft which I plan to continuously work on:
I'd love to hear your feedback on that, too!