Repository navigation
Releases
1.0.1 — Fixes unbuildable 1.0.0
1.0.0 cannot be built into an app. Use this release instead.
Fixed
All four Metal shaders annotated their value parameters with [[buffer(n)]]. That attribute is only valid on pointer and reference types, and SwiftUI [[stitchable]] entry points take plain values, so every shader was rejected by the Metal compiler:
error: type 'float2' (vector of 2 'float' values) is not valid for attribute 'buffer'
The practical effect was that any app depending on FlowMotion failed to build. swift build does not compile Metal sources, which is why the problem survived into a tagged release — it only surfaces when the package is built into an app target.
The attributes are removed. Parameter order and types were already correct, so nothing at a call site changes.
Added
Demo/— a SwiftUI app exercising the spring presets,flowShimmer, andflowPulse. Generated with XcodeGen, referencing the package by local path. Building it is what compiles the Metal shaders, so this class of error cannot pass unnoticed again.- A README GIF recorded from that app: five spring presets covering the same distance at the same instant, so the difference between them is visible rather than described.
Install
.package(url: "https://github.com/GRimAce11/FlowMotion", from: "1.0.1")79 tests passing.
1.0.0 — broken, use 1.0.1
Do not use this release. Its Metal shaders do not compile, so any app depending on it fails to build. Fixed in 1.0.1.