To include the metal shaders in a Swift Package, we need https://github.com/apple/swift-evolution/blob/master/proposals/0271-package-manager-resources.md. Once Swift 5.3 is released I'll start working on this again. It is close to being usable as a Swift package. This project is a work-in-progress. I plan to make destructive changes to the git history up until a 1.0 release, so relying on this code before that time is not advised!
To run the example project, clone this repo, and open iOS Example.xcworkspace from the iOS Example directory.
- MacOS 10.14+
- iOS 12+
Add this to your project using Swift Package Manager. In Xcode that is simply: File > Swift Packages > Add Package Dependency... and you're done.
This project is a fork of the AHNoise project by Andy Heard. Andy was nice enough to let me use the code as I see fit to keep the project going. The amazing shader code to generate the noise, etc. was all done by him.
NoiseKit is available under the Unlicense (public domain) license. See the LICENSE file for more information.